Class: MusicEvent

Environment: Siren
Superclass: Siren.DurationEvent
Category: Music-Events
Instance variables: pitch loudness voice

Instances of class MusicEvent are concrete musical note event objects used for eventLists and eventGenerators.

Instance variables:
pitch the pitch/frequency
loudness the loudness/amplitude
voice voice--a voice or key

accessing

ampl
Answer the receiver's loudness

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

transposeBy: aStep
Add the given step to the receiver's pitch.

printing

printOn: aStream
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

= anObject
Answer whether the receiver and the argument represent the same values.

scheduling

playOn: aVoice at: aTime
Play the receiver on the voice then.

MetaClass: MusicEvent class

instance creation

ampl: anA voice: aVoice
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
Initialize the global dictionary of Events (optional).

initializeEventDictionary
Initialize the global dictionary of Events (optional).

examples

eventInspectExample
Demonstrate the terse format of event description.

example
Demonstrate the terse format of event description.