Class: DurationEvent

Environment: Siren
Superclass: Siren.AbstractEvent
Category: Music-Events
Instance variables: duration index startedAt realTime

Instances of DurationEvent are events that have special slots for their duration and voice properties.

Instance variables:
duration duration--a relative time

accessing

ampl
Answer the receiver's ampl

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

printOn: aStream
Format and print the receiver on the argument.

storeOn: aStream
Format and store the source the receiver on the argument.

scheduling

isActive
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

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

initialize-release

initialize
Set up the default state of the receiver--add props. dict.

MetaClass: DurationEvent class

examples

eventInspectExample
Demonstrate the creation of a DEvent.

example
Demonstrate the creation of a DEvent.

instance creation

dur: aD voice: aVoice
Answer a DurationEvent instance initialized with the arguments.