Class:            ComponentSound

Environment:      Siren
Superclass:         Siren.Sound
Category:         Music-Sound
Instance variables:   start stop sound
Indexed variables:   objects

A ComponentSound is used as a component (a "splice" element, if you will).
It represents another sound that "composes" the composite.

Instance Variables:
   sound the "subject" sound
   start the starting sample in the composite
   stop the ending sample in the composite
   offset the offset into the selection

accessing

offset
   Answer the receiver's 'offset'.

offset: anObject
   Set the receiver's 'offset' to be anObject.

sound
   Answer the receiver's 'sound'.

sound: anObject
   Set the receiver's 'sound' to be anObject.

start
   Answer the receiver's 'start'.

start: anObject
   Set the receiver's 'start' to be anObject.

stop
   Answer the receiver's 'stop'.

stop: anObject
   Set the receiver's 'stop' to be anObject.

printing

printOn: aStream
   Pretty-print the receiver on the argument.

testing

includes: anIndex
   Answer whether the argument is within the range of the receiver.

MetaClass:         ComponentSound class

instance creation

on: sound from: start to: stop
   Answer a new instance initialized with the arguments.

on: sound start: start stop: stop
   Answer a new instance initialized with the arguments.

on: sound start: start stop: stop offset: offset
   Answer a new instance initialized with the arguments.