RedTrk:
Filter:
redMst/Classes (extension) | Red > redMst

RedTrk
ExtensionExtension

a sort of timeline - slave track

Description

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).

Class Methods

.new

Create a new track. It automatically adds itself to RedMst and gets removed with RedMst.clear.

Arguments:

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.

Special class methods

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).

.playDict

Dictionary of custom play functions. If class not found here then defaults to the .play message.

.stopDict

Dictionary of custom stop functions. If class not found here then defaults to the .stop message.

.clearDict

Dictionary of custom clear functions. If class not found here then defaults to the .free message.

Instance Methods

.key

Name of track ( Symbol ).

.item

Object to be controlled (e.g. Pbind, Tdef, Routine ).

.sections

Which sections this track is active ( Array ).

.player

Object returned by item after .play (e.g. Synth, EventStreamPlayer ).

.isPlaying

A boolean.

Not so useful instance methods

The following methods are used internally by RedMst. Not very useful on their own.

.play

.stop

.clear

Examples

see RedMst helpfile for more examples.