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

Re: [sc-users] more on synthdef variants



On Dec 25, 2004, at 7:29 PM, newton armstrong wrote:

but:
Pbind(\instrument, "varianttest.alpha").play;
FAILURE n_set Node not found

excuse me, should have been more clear. the Node not found message is because the synthdef didn't have a gate argument. but this is still playing the wrong note...:

(
x = SynthDef("varianttest", { |freq=200, gate=1|
	Out.ar(0, SinOsc.ar(freq, 0, Linen.kr(gate, 0, 1, 0, doneAction: 2)));
}).variants = (alpha: #[\freq, 400]);
x.store;
)

Pbind(\instrument, "varianttest.alpha").play;