RedTrk is controlled by the master ( RedMst ). Each track must have a name, an item to play and an array specifying when to play (sections when active).
Create a new track. It automatically adds itself to RedMst and gets removed with RedMst.clear
.
key |
A unique name for this track ( Symbol ). |
item |
Some object that responds to play and stop (e.g. Pbind, Tdef, Routine ). |
sections |
An array of indices. |
Add functions to the following class variables if you have special classes that can not be controlled with .play
/ .stop
, or classes that have argument keywords that does not match clock
and quant
(e.g. when 'clk' is used instead of 'clock'), or classes that need to free resources on clear (e.g. free buffers).
Dictionary of custom play functions. If class not found here then defaults to the .play
message.
Dictionary of custom stop functions. If class not found here then defaults to the .stop
message.
Dictionary of custom clear functions. If class not found here then defaults to the .free
message.
Name of track ( Symbol ).
Which sections this track is active ( Array ).
Object returned by item after .play
(e.g. Synth, EventStreamPlayer ).
A boolean.
The following methods are used internally by RedMst. Not very useful on their own.
see RedMst helpfile for more examples.