K2ATrig
LFSaw.de; PseudoUGen
*ar(trig)
returns a trigger ([1, 0, 0, 0, 0, 0, 0, ... ] * amp) at audiorate
s.boot;
SynthDef(\k2aTrTest, {|out = 0, t_trig = 0| Out.ar(out, K2ATrig.ar(t_trig))}).send(s)
x = Synth(\k2aTrTest)
x.set(\t_trig, 0.2)
x.set(\t_trig, 0.5)
Attention!
{
100.do{|i|
(i * 0.001).wait;
x.set(\t_trig, 1)
}
}.fork
x = {|out = 0|
var trigs = TrigControl.names(\trigs).kr([1,1,1]);
Out.ar(out, K2ATrig.ar(trigs))
}.play
x.setn(\trigs, [0.4, 0.3, 0.3])