Environment: Siren
An instance of VirtualSound is a "reference" to another sound, typically by a named cue list entry.
Instance Variables:
accessing
source
source
Answer the receiver's source sound.
source: aSound
Set the receiver's source sound.
start: start
Set the argument as the starting sample of the receiver.
stop: stop
Set the argument as the ending sample of the receiver.
sample accessing
Stuff the given sample at the given index **after transforming into a 'real' sound**.
private
Answer a 'real sound' based on the receiver.
mapSampleIndex: index
Map the given sample index according to the 'page' (firstIndex) of the source and the receiver's relative offset.
realSound
Answer the real sound for the receiver.
testing
Answer whether the receiver is a virtual sound.
MetaClass: VirtualSound class
instance creation
Answer a VirtualSound derived from the argument and named cue region.
examples
Open a sound view on a ramp with a chunk cut out of it.