RedTrk2 a sort of timeline - slave track

superclass: RedTrk

very similar to RedTrk but can do abrupt swaps between sections. it cuts off events with long durations.

also does cross-fade on demand. please ignore the "FAILURE n_set Node not found" that gets posted.

note that internally Pbind gets wrapped in Pbus and this may change order-of-execution. so the Pbus forces a RedTrk2 to \addToTail. this is not the case for RedTrk.

see also [RedMst] [RedSeq] [RedTrk]

<>fadeTime

time to fade in/out. (default= 0.02 seconds)

//--

(

s.waitForBoot{

RedMst.clear;

RedMst.clock= TempoClock(120/60);

RedMst.quant= 2; //relatively short quant

RedTrk2(\t1, Pbind(\degree, 0, \dur, 8), [0]); //create a track with long duration events

RedTrk2(\t2, Pbind(\degree, 1, \dur, 8), [1]);

}

)

RedMst.play

RedMst.goto(1) //with RedTrk long durations and short quant gives overlaps

RedMst.goto(0) //while RedTrk2 forces events to stop

RedTrk2(\t1).fadeTime= 3; //set long fadeTime to do crossfades

RedTrk2(\t2).fadeTime= 3;

RedMst.goto(1)

RedMst.goto(0)

RedMst.stop

RedMst.clear