Mark2
Mark2 derives from sequencer in electronic music. It is useful when you need to sequence events, possibly looped, and handling numerous of individual sequences at the same time.
Creating a Sequencer
There are two types of sequencers, "variable" and "quantized."
Variable Sequencer
A variable sequencer counts from 0 to the length of events and an individual event also counts from 0 to end before proceeding to the next event.
var sequencer = Mark2;
Quantized Sequencer
A quantized sequencer simply counts from 0 to the length of events.
var sequencer = Mark2;
Adding an Event to a Sequencer
By default, event derives its end and fps from the sequencer. However, individual events can have its own end, fps, and easing type.
/* Event 1 */sequencer; /* Event 2 */sequencer;
Controlling a Sequencer
sequencer;sequencer;sequencer;sequencer;sequencer; // By rolling, the sequencer continues to count but does not proceed to the next event.sequencer;
Global Control
You can assign a group to a sequencer. By grouping them, sequencers within that group can be controlled at the same time. If no group name is given, global action will be applied to all sequencers.
...var sequencer = Mark2;... Mark2;Mark2;Mark2;Mark2;Mark2;Mark2;Mark2;Mark2;