Still working on the code. Another question:
How would you turn off an LED when a pattern is done.
Pbindef(\klank,
\droneMix, msg[1],
\warpRate, msg[2].linlin(0.0, 1.0, 0.1, 1.0),
\lpffreq, msg[3].linlin(0.0, 1.0, 100, 400),
\wdrop, msg[4].linlin(0.0, 1.0, 1, 35),
\wmode, msg[5].linlin(0, 1, 1, 2),
\dur, Pseq([msg[6].linlin(0, 1, 1, 20)], 1),
\count, Prout({
var n = msg[6].linlin(0, 1, 1, 20);
loop({
n.do{ n = n-1;
n.postln;
if(n == 0,
{~klank.value = false}
);
1.yield}
})
})
).play(quant: 0)
This was an attempt but it isn’t working. I also tried polling .isPlaying which didn’t work for this pattern either. Any ideas? Thanks again.