Delay1:
Filter:
Classes | UGens > Delays

Delay1 : Filter : PureUGen : UGen : AbstractFunction : Object

Single sample delay.
Source: Delays.sc

Description

Delays the input by one audio frame or control period.

Class Methods

Delay1.ar(in: 0.0, mul: 1.0, add: 0.0, x1: 0.0)

Delay1.kr(in: 0.0, mul: 1.0, add: 0.0, x1)

Arguments:

in

The input signal.

mul

The output will be multiplied by this value.

add

This value will be added to the output.

x1

The sample value preceding the delayed input, which is the value of the first output sample. This can be a numeric value or a UGen.

NOTE: When running at audio rate, x1 defaults to 0.0, i.e. "silence" precedes the delayed input. At control rate, the default value is set to the first sample of in, i.e. the first input sample is held during the delay.

Discussion:

The output sequence is:

out[0] = in[-1] = x1
out[1] = in[0]

For audio-rate signals the delay is one audio frame, and for control-rate signals the delay is one control period.

Why is the default value of x1 different depending on the UGen's rate?

At audio-rate, an analog delay model is followed—the input signal is preceded by silence (zero). At control-rate, leading with a zero is less appropriate because control signals are often DC or other non zero-mean signals (e.g. a frequency or gain control signal).

Inherited class methods

Instance Methods

Inherited instance methods

Examples