Classes | UGens > Triggers

Latch : UGen : AbstractFunction : Object

Sample and hold
Source: Trig.sc
Subclasses: Gate

Description

Holds input signal value when triggered. Latch will output 0 until it receives its first trigger.

Class Methods

Latch.ar(in: 0.0, trig: 0.0)

Latch.kr(in: 0.0, trig: 0.0)

Arguments:

in

The input signal.

trig

Trigger. Trigger can be any signal. A trigger happens when the signal changes from non-positive to positive.

Inherited class methods

7 methods from UGen ► show
7 methods from Object ► show

Instance Methods

Inherited instance methods

92 methods from UGen ► show
159 methods from AbstractFunction ► show
260 methods from Object ► show

Examples

The above is just meant as example. LFNoise0 is a faster way to generate random steps: