(
10.do{ |i|
SynthDef(\r +'i', { |freq = 440, pan = 1.0|
var env = EnvGen.kr(Env.perc(0, 0.25));
var sig = Pulse.ar(freq);
Out.ar(0, sig);
}).add
}
)
I need to declare multiple same functions at once.
I think It works, but not working in a supercollider
Is there any tips for declaring same function at once with iteration method?