PeakFollower:
Filter:
Classes | UGens > Analysis > Amplitude

PeakFollower : UGen : AbstractFunction : Object

Track peak signal amplitude.
Source: Trig.sc

Description

Outputs the peak amplitude of the signal received at the input. If level is below maximum, the level decreases by the factor given in decay .

Internally, the absolute value of the signal is used, to prevent underreporting the peak value if there is a negative DC offset. To obtain the minimum and maximum values of the signal as is, use the RunningMin and RunningMax UGens.

Class Methods

PeakFollower.ar(in: 0.0, decay: 0.999)

PeakFollower.kr(in: 0.0, decay: 0.999)

Arguments:

in

The input signal.

decay

Decay factor.

Inherited class methods

Instance Methods

Inherited instance methods

Examples