Hi. I’m new here, so sorry if this has been asked before. I’m at the pointy end of a Master’s degree project and I’m on a very steep learning curve without much time to go through all the previous questions, but happy to be pointed at anything relevant.
I have a Pbindef pattern that lasts for 2 beats looped inf times. I would like to change a parameter (z in the code below) while it is playing, and have the change take effect at the beginning of the loop, but I can only get it to happen on the next beat. So sometimes it’s beat 1, sometimes it’s beat 2 depending on when I execute the change. I’ve tried playing with quantisation and I’m currently trying to look at what can be done with TempoClock, but there’s a lot to it so if anyone is able to shortcut my learning a bit, that would be appreciated!
Thanks
(
z = ‘neg’;
switch(z,
‘neu’,{[a = [’\sK’,’\sSn’], b=[1,2]]},
‘pos’,{a = [’\mK’,’\mSn’]},
‘neg’,{a = [’\hK’,’\hSn’]});
y = Pbindef(\rhythm,
\instrument, \kickplay,
\dur, Pseq([1/4,1/4,1/4,1/4,1/2,1/2],inf),
\buf, Pseq([d[a[0]],d[a[0]],d[a[1]]],inf),
\rate,1,
\amp, 1,
);
)
y.play(quant:0);
y.stop;