[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] array as argument again



Hi, 

Still trying to pass arguments as an array. What am I doing wrong here?

( 
 SynthDef("testsine",
 {arg par = #[500, 0, 2];

 Out.ar(0, SinOsc.ar(par.at(0))*EnvGen.kr(Env.perc(par.at(1), par.at(2))))

 }).play 
 ) // works ok 

 Synth("testsine", [\par, [800, 1, 0]]) // no sound