I am having issues wit the Pbind test for note gate
When a rest is inserted , the note
In the following code , note nr50 and note nr57 are not played because they fall on a rest .
What to do to have the rests fall in between the notes , which is what rest are about heh ?
(
SynthDef (\simple,
{
arg att=0.001,dec=0.200,mod=500,pitch=0,filterfreq=400;
var sig,env;
env=EnvGen.ar(Env([0,1,0],[att,dec],[0,-5]),doneAction:2);
sig=Pulse.ar(pitch.midicps,mul:0.5)+Saw.ar((pitch+0.1).midicps,mul:0.5);///////I an
sig=RLPF.ar(sig,filterfreq+(env*mod).clip(40,20000),rq:0.5);
sig=sig*env!2;
Out.ar(0,sig)
}).add
)
(
Pdef(\qwe,
Pbind(\instrument,\simple,
\dur,Pseq([0.5,0.5,Rest(1),0.5,0.5,Rest(1),0.5,0.5,Rest(1)],inf),
\pitch,Pseq([48,47,50,33,72,57],inf),
\filterfreq,Prand([100,400,100,400],inf),
\dec,Prand([0.4,0.400,0.250,0.6],inf),
\att,Prand([0.001,0.001,0.001,0.001],inf);
).play
)
);
/////