Class: ActionEvent

Environment: Siren
Superclass: Siren.DurationEvent
Category: Music-Events
Instance variables: action
Indexed variables: objects

An instance of ActionEvent evaluates a Smalltalk block when scheduled.

Instance variables:
action Something to do

scheduling

play
Play the receiver by executing its action block.

playAt: aTime
Play the receiver by executing its action block.

accessing

action
Answer the receiver's 'action'.

action: anObject
Set the receiver's instance variable 'action' to be anObject.

MetaClass: ActionEvent class

examples

eventExample
Demonstrate the creation of an ActionEvent.

listExample
Demonstrate the creation of an ActionEvent by making a list of events that draw rectangles on the top window.

playExample
Demonstrate the performance of a list of ActionEvents.

instance creation

dur: aD action: actionBlock
Answer an ActionEvent instance initialized with the arguments.

dur: aD block: actionBlock
Answer an ActionEvent instance initialized with the arguments.