Trivial Question:
How to define a Synth with arg ‘trig’ which sends ONE Trigger, when arg = 1,
sth like:
x=SynthDef(\xy,{ arg trig; PlayBuf.ar(1,blabla,trig:trig) ... }
x.set(\trig,1) -> triggers
x.set(\trig,1) -> triggers
Trivial Question:
How to define a Synth with arg ‘trig’ which sends ONE Trigger, when arg = 1,
sth like:
x=SynthDef(\xy,{ arg trig; PlayBuf.ar(1,blabla,trig:trig) ... }
x.set(\trig,1) -> triggers
x.set(\trig,1) -> triggers
You need to use a trigger rate control. I’d do it like this \myTrigger.tr
.
x = SynthDef(\xy, {
PlayBuf.ar(1, blabla, trig: \myTrigger.tr);
}).play;
x.set(\myTrigger, 1);
, thanks, that works perfectly!