On Dec 30, 2004, at 11:41 AM, David Cottle wrote:
Hi,
Still trying to pass arguments as an array. What am I doing wrong here?
you need to use setn for setting array controls.
Synth("testsine").setn(\par, #[800, 1, 0])
(
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
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users