QcPenPrinter: no need to allocate QPrintDialog on heap
[supercollider.git] / HelpSource / Classes / T2A.schelp
blob4a5820987ac92ed34a0da43a7e571726dc212cfd
1 class:: T2A
2 summary:: Control rate trigger to audio rate trigger converter
3 categories:: UGens>Conversion, UGens>Triggers
4 related:: Classes/T2K, Classes/K2A, Classes/A2K
6 description::
7 Converts control rate trigger into audio rate trigger (maximally one per control period).
9 classmethods::
10 method:: ar
12 argument:: in
13 input signal.
14 argument:: offset
15 sample offset within control period.
17 examples::
18 code::
19 // example
22         var trig = Impulse.kr(MouseX.kr(1, 100, 1));
23         Ringz.ar(T2A.ar(trig), 800, 0.01) * 0.4
24 }.play;
27 // compare with K2A
30         var trig = Impulse.kr(200);
31         [T2A.ar(trig), K2A.ar(trig)].lag(0.001)
32 }.plot2(10/200);
35 // removing jitter by randomising offset
38         var trig = Impulse.kr(MouseX.kr(1, 100, 1));
39         Ringz.ar(T2A.ar(trig, WhiteNoise.kr.range(0, s.options.blockSize - 1)), 800, 0.01) * 0.4
40 }.play;