Amplitude:
Filter:
Classes | UGens > Analysis > Amplitude

Amplitude : UGen : AbstractFunction : Object

Amplitude follower
Source: Compander.sc

Description

Tracks the relative amplitude of a signal, using an envelope follower algorithm. An envelope follower converges toward rising amplitude according to attackTime, and toward falling amplitude according to releaseTime. See the plot under Examples.

Class Methods

Amplitude.ar(in: 0.0, attackTime: 0.01, releaseTime: 0.01, mul: 1.0, add: 0.0)

Amplitude.kr(in: 0.0, attackTime: 0.01, releaseTime: 0.01, mul: 1.0, add: 0.0)

Arguments:

in

Input signal

attackTime

20dB convergence time for following attacks.

releaseTime

20dB convergence time for following decays.

mul
add

Inherited class methods

Instance Methods

Inherited instance methods

Examples

The first example produces a plot, comparing a fast attack/release against slower settings. The green line (fast settings) approximates the amplitude more quickly, but also oscillates according to the wave shape. The blue line (slow settings) rises more slowly, but oscillates less (more stable measurement).