I’m having a headache creating nested pseq
I want some lists to transpose an repeat within a single Pseq
It works but as long as the parent Pseq also has some notes inside it , in the provided example the first notes (four times 72) are necessary to make the master Pseq repeat infinitly
Iow , I want to get rid of those .notes
(
SynthDef(\twoop,
{
|fmamt=2,modoffset=24,moatt=0.001,modrel=0.500,ampatt=0.001,amprel=0.800,pitch=48,outt=0.3,pan=0.2,feed=0.2|
var mod,modenv,ampenv,carr;
mod=SinOscFB.ar((pitch+modoffset).midicps,feedback:feed)*fmamt;
modenv=EnvGen.ar(Env.perc(moatt,modrel),doneAction:0);
ampenv=EnvGen.ar(Env.perc(ampatt,amprel),doneAction:2);
carr=SinOsc.ar(pitch.midicps,(mod*modenv))*ampenv*outt;
carr=Pan2.ar(carr,pos:pan);
Out.ar(0,carr);
}).add
);
//////////
(
Pdef(
\crt,
Pbind(
\instrument,
\twoop,
\pitch,Pseq([72,72,72,72,Pseq([48,72,48,\,60,48,48,48]-10,4),Pseq([48,72,48,\,60,48,48,48]-17,2),Pseq([48,72,48,\,60,48,48,48]-15,2)],inf),
\dur,Pseq([1/4,1/8,1/4,1/4,1/8,1/4,1/8,1/4],inf),
\fmamt,Prand([2,1,3,4],inf),
\modrel,Prand([0.425,0.525,0.500,0.550,1,0.625,0.500,0.5,2.8],inf),
\modoffset,Prand([12,0,12,24],inf),
\feed,Pwhite(0.3,0.5,inf),
\pan,Prand([-0.3,0,0.3],inf),
\amprel,Pwhite (0.08,1,inf),
)
)
)
Pdef(\crt).stop;///////////FM
Pdef(\crt).play;