Hi all,
After a finite Pbind
stored in a Pdef
had finished playing back, I’d like to restart the pattern a bit later at same tempo as defined in the global variable “t”:
a = Pbind(
\dur, 1,
\note, Pbrown(0,7,2,8)
);
m = Pbind(
\dur, 1,
\note, Pseq([24]++(12!3),inf));
)
(
t = TempoClock(100/60).permanent_(true);
Pdef(\pd,a).play(t);
Pdef(\pdm,m).play(t);
)
Pdef(\pd,a); // tempo = 60/60
Pdef(\pd,a).quant([4,0]); // tempo = 60/60; no snapping to 4th beat
Pdef(\pd,a).play(t,quant:[4,0]); // same result as above
(
t = TempoClock(100/60);
Pdef(\pd,a).play(t,quant:[4,0]); // same
)
Pdef.removeAll;
When I rerun the Pbind pattern via Pdef, it plays back the pattern at default tempo (ie. 60bpm), not at 100bpm.
N.B.: I do not want to use TempoClock.default
because I intend to use different tempi.
How can I make sure that when I rerun a pattern, SC plays it back at the tempo I define in global variable “t”?
Thanks,
cd