Hi everyone, I can’t figure out why I can’t stop this very simple Pbind with the “stop” method… Any idea?
(
SynthDef(\kick, {
|freqA=500, freqB=20, freqC=10, freqDur1=0.01, freqDur2=0.2, freqC1=1, freqC2=(-1), atk=0.01, rel=1, c1=1, c2=(-12), amp=0.8, out=0, pan=0|
var sig, env, freqSweep;
freqSweep = Env([freqA, freqB, freqC], [freqDur1, freqDur2], [freqC1, freqC2]).ar;
env = Env([0,1,0],[atk,rel],[c1,c2]).kr(2);
sig = SinOsc.ar(freqSweep, pi/2);
sig = sig * env;
sig = Pan2.ar(sig, pan, amp);
Out.ar(out, sig);
}).add;
)
(
~kick1 = Pbind(
\instrument, \kick,
\dur, Pseq ([1/8, 1/16, 1/16, 1/8, 1/8, 1/16, 1/16, 1/16, 1/16, 1/8, 1/8, Rest(11)], inf),
\stretch, 1.875,
\amp, Pseq ([0.9, Pexprand(0.1,0.3,9), 0.9, Rest(11)], inf),
\freqA, Pseq ([500, 300, 300, 300, 500, 300, 300, 300, 300, 300, 500, Rest(11)], inf),
);
)
~kick1.play;
~kick1.stop;