I used the argument level [ ] , time [ ] , curve [ ]; as argument
But when I insert the argument in the env ( ) I get an error
It seems that the array should also be enclosed in an array
see code
First example is wrong
Second example doesn’t give an error message but still no sound becasue of the envelope ?
SO I must be doing something wrong in the argument declaration or use of the aray ,but then the console would give me an error , which it doesnt’( second example )
///this is wrong
(
{
arg levels=[0,1,0],times=[0.001,0.500],curves=[0,-5];
var env,sig;
env=EnvGen.ar(Env(levels,times,curves),doneAction:2);///argumens are not enclosed in array
sig=Saw.ar(48.midicps)*0.3;
sig=RLPF.ar(sig,777,0.5);
sig-sig*env;
}.play
)
//////also wrong
(
{
arg levels=[0,1,0],times=[0.001,1],curves=[0,-5];
var env,sig;
env=EnvGen.ar(Env([levels,times,curves]),doneAction:2);///here the arguments are enclosed in an array
sig=Saw.ar(48.midicps)*0.3;
sig=RLPF.ar(sig,777,0.5);
sig*env;///no sound seems that env is still not working
}.play
)
//