How can I get
\buf, Pseq([l, h, h, h, h], inf)
to start over when the values of
\dur, Prand([(temp/1), (temp/2), (temp/4), (temp/0.5)], inf),
, over time, all add up to ‘(temp * 8)’?
(
var temp, l, h;
temp = 1;
l = Prand(d[\l], 1);
h = Prand(d[\h], 1);
Pdef(
\rhythm,
Pbind(
\instrument, \bufplay,
\dur, Prand([(temp/1), (temp/2), (temp/4), (temp/0.5)], inf),
\buf, Pseq([l, h, h, h, h], inf),
\rate, 2,
\amp, 0.5,
);
).play;
)
Should I abandon this approach? Should I learn more and then come back to it? New to SC.