Environment: Siren
Instances of class MusicEvent are concrete musical note event objects used for eventLists and eventGenerators.
Instance variables:
accessing
pitch
loudness
voice
ampl: aValue
Set the receiver's loudness to the argument.
amplitude
Answer the receiver's loudness
amplitude: aValue
Set the receiver's loudness to the argument.
loudness
Answer the receiver's loudness
loudness: aValue
Set the receiver's loudness to the argument.
pitch
Answer the receiver's pitch
pitch: aValue
Set the receiver's pitch to the argument.
voice
Answer the receiver's voice
voice: aValue
Set the receiver's voice to the argument.
processing
Add the given step to the receiver's pitch.
printing
Format and print the receiver on the argument.
printTerseOn: aStream
Format and print the receiver on the argument as tersely as possible.
printVerboseOn: aStream
Format and print the receiver on the argument.
readDataFrom: aDataStream size: size
Read a new event from the given stream using the compact format.
storeDataOn: aDataStream
Store myself on a DataStream. Answer self.
storeOn: aStream
Format and store the source the receiver on the argument.
comparing
Answer whether the receiver and the argument represent the same values.
scheduling
Play the receiver on the voice then.
MetaClass: MusicEvent class
instance creation
Answer a MusicEvent instance initialized with the arguments.
dur: aD ampl: anA voice: aVoice
Answer a MusicEvent instance initialized with the arguments.
dur: aD pitch: aP
Answer a MusicEvent instance initialized with the arguments.
dur: aD pitch: aP ampl: anA
Answer a MusicEvent instance initialized with the arguments.
dur: aD pitch: aP ampl: anA voice: aVoice
Answer a MusicEvent instance initialized with the arguments.
dur: aD pitch: aP voice: aVoice
Answer a MusicEvent instance initialized with the arguments.
dur: aD voice: aVoice ampl: anA
Answer a MusicEvent instance initialized with the arguments.
duration: aD pitch: aP
Answer a MusicEvent instance initialized with the arguments.
duration: aD pitch: aP ampl: anA
Answer a MusicEvent instance initialized with the arguments.
pitch: aP
Answer a MusicEvent instance initialized with the argument.
pitch: aP ampl: anA voice: aVoice
Answer a MusicEvent instance initialized with the arguments.
class initialization
Initialize the global dictionary of Events (optional).
initializeEventDictionary
Initialize the global dictionary of Events (optional).
examples
Demonstrate the terse format of event description.
example
Demonstrate the terse format of event description.