the trigger. This can be any signal. A trigger happens when the signal changes from non-positive to positive.
the duration for which the ugens holds the value of 1 when triggered
the trigger. This can be any signal. A trigger happens when the signal changes from non-positive to positive.
the duration for which the ugens holds the value of 1 when triggered
A UGen which outputs a value of 1 for a given duration when triggered.
When a trigger occurs at the input, a value of 1 is output for the specified duration, otherwise zero is output. When a new trigger occurs while this ugens outputs 1, the hold-time is reset to the duration.
Warning: The hold-time is subject to a bug that depends on the input signal. For example with
Trig1.ar(Impulse.ar(0), 4 * SampleDur.ir)
one actually gets a high signal for five sample frames instead of four.Examples
Trig