Decay:
Filter:
Classes | UGens > Filters > Linear | UGens > Envelopes

Decay : Filter : PureUGen : UGen : AbstractFunction : Object

Exponential decay
Source: Filter.sc

Description

An integrating filter which, if given an impulse, will produce an exponentially decaying envelope. Decay is essentially the same as Integrator, but instead of specifying the integration coefficient directly, it is calculated from the decayTime—the time required for input signal to attentuate 60 dB, or decay to 99.9% of its value.

Class Methods

Decay.ar(in: 0.0, decayTime: 1.0, mul: 1.0, add: 0.0)

Decay.kr(in: 0.0, decayTime: 1.0, mul: 1.0, add: 0.0)

Arguments:

in

The input signal.

decayTime

The time it takes for the input signal to decay 60 dB.

mul

The output will be multiplied by this value.

add

This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

As can be heard in the previous example, when Decay is used as a modulator, its immediate onset can lead to discontinuities and audible clicks. This can be seen in the waveform:

Decay2 allows for onset control, as shown below: