RedSeq a sort of timeline - master sequencer



simple way to control RedMst.


see also [RedMst] [RedTrk] [RedTrk2]


*new(indices, beats)

indices - an array of sections

beats - duration in beats for each section

*newArray(array)

array - an array of indices and beats written together [index, beat]

play

stop

pause

resume



//--

(

s.waitForBoot{

RedMst.clear;

RedMst.clock= TempoClock(190/60);

RedMst.quant= 4;

RedTrk(\intro, Pbind(\degree, Pseq([0, 4], inf)), #[0]);

RedTrk(\a, Pbind(\degree, Pseq([1, 4], inf)), #[1]);

RedTrk(\b, Pbind(\degree, Pseq([2, 4], inf)), #[2]);

RedTrk(\outro, Pbind(\degree, Pseq([-1, 0], inf)), #[3]);

}

)


a= RedSeq([0, 1, 1, 2, 1, 3], [32, 16, 16, 8, 16, 8]);//intro, a, a, b, a, outro

a.play

a.stop


//same thing but using the newArray method

a= RedSeq.newArray([[0, 32], [1, 16], [1, 16], [2, 8], [1, 16], [3, 8]]);//intro, a, a, b, a, outro

a.play

a.stop