how is it possible to create a Synth which takes as arguments levels and times for creating an Env. I have something like this in mind:
arg frq = 440, levels, times;
var sig = SinOsc.ar(freq:frq);
var env = EnvGen.ar(Env(levels:levels, times:times), doneAction:2);
Out.ar(0, sig * env)
Also can someone tell me why the above code is wrong?