Hello,
I am not able to solve this problem: \amp
should be 0.04, when \freq
is above 300. And it should be 0.02, when freq
is over 600:
(6.collect{|i|
Pbind(
\amp, 0.1,
\scale, ~erv,
\instrument,\sawy,
\freq, Pseq([200,350, 500, 700],1),
\amp, Pfunc{|e| if (e[\freq] > 300, {0.04}, {0.1})}, Pfunc{|e| if (e[\freq] > 600, {0.02}, {0.1})},
\atk, 1,
\dcy, 1,
\dur,Pswitch1([Rest(1),1, Pseq([0.5, 0.5],1)],Pseq(~vl[i],1)),
).play(c)})
Any help would be appreciated!