SuperCollider CLASSES

T2A

Control rate trigger to audio rate trigger converter
Inherits from: K2A : PureUGen : UGen : AbstractFunction : Object

Description

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

Class Methods

*ar (in: 0, offset: 0)

Arguments:

in

input signal.

offset

sample offset within control period.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

// example
(
{
    var trig = Impulse.kr(MouseX.kr(1, 100, 1));
    Ringz.ar(T2A.ar(trig), 800, 0.01) * 0.4
}.play;
)

// compare with K2A
(
{
    var trig = Impulse.kr(200);
    [T2A.ar(trig), K2A.ar(trig)].lag(0.001)
}.plot2(10/200);
)

// 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;
)