T2A control rate trigger to audio rate trigger converter

T2K.ar(in, offset)

Converts control rate trigger into audio rate trigger (maximally one per control period)

in - input signal

offset - sample offset within control period

// example

(

{

var trig = Impulse.kr(MouseX.kr(1, 100, 1));

Ringz.ar(T2A.ar(trig), 800, 0.01) * 0.4

}.play;

)

// removing jitter by randomising offset

(

{

var trig = Impulse.kr(MouseX.kr(1, 100, 1));

Ringz.ar(T2A.ar(trig, WhiteNoise.kr.range(0, s.options.blockSize - 1)), 800, 0.01) * 0.4

}.play;

)