Environment: Siren
Instances of DurationEvent are events that have special slots for their duration and voice properties.
Instance variables:
accessing
duration
dur
Answer the receiver's duration.
dur: newValue
Set the receiver's duration.
duration
Answer the receiver's duration.
duration: newValue
Set the receiver's duration.
index: aNumber
Set the receiver's event index.
order
Answer the receiver's order.
order: anOrder
Set the receiver's order.
pitch
Answer the receiver's pitch
voice
Answer the receiver's voice or some reasonable default.
voice: aValue
Set the receiver's voice to the argument.
printing
Format and print the receiver on the argument.
storeOn: aStream
Format and store the source the receiver on the argument.
scheduling
Answer whether the receiver is in a schedule
nextTime: ignored
Answer whether to reschedule the receiver
play
Play the receiver by scheduling it.
playAt: aTime
Play the receiver on its voice then.
playOn: aVoice at: aTime
This is a no-op in the abstract class
reset
Reset the receiver's index.
scheduleAt: aTime
Play the receiver on its voice then.
comparing
Answer whether the receiver and the argument represent the same values.
initialize-release
Set up the default state of the receiver--add props. dict.
MetaClass: DurationEvent class
examples
Demonstrate the creation of a DEvent.
example
Demonstrate the creation of a DEvent.
instance creation
Answer a DurationEvent instance initialized with the arguments.