audioEnvelopeFollower
R2026bDescription
The audioEnvelopeFollower object estimates the envelope of an input signal over
time.
To generate the estimated envelope:
Create the
audioEnvelopeFollowerobject and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
creates an audio
envelope follower System object™, aEF = audioEnvelopeFolloweraEF, with default property values.
sets properties using one or more name-value arguments. Unspecified properties have
default values.aEF = audioEnvelopeFollower(PropertyName=Value)
For example, aEF =
audioEnvelopeFollower(AttackTime=0.05,ReleaseTime=0.1) creates an audio
envelope follower System object, aEF, with an attack time of 0.05 seconds and a release
time of 0.1 seconds.
Properties
Usage
Syntax
Description
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj, use
this syntax:
release(obj)
Examples
Algorithms
Assume an input signal x[n] and its envelope y[n] with these parameters:
Fs is the sample rate.
ta is the attack time.
tr is the release time.
th is the hold time.
The attack and release times correspond to the time in seconds that y[n] takes to go to 1 – e–1 (~63.2%) of its final value. The release time count, tc, is the time elapsed since x is less than y. Then, the attack-time coefficient αa and the release-time coefficient αr are these:
αa = e–1/(Fsta)
αr = e–1/(Fstr)
Depending on the input signal preprocessing mode, the table lists the preprocessed input xp[n], preprocessed envelope yp[n], and envelope y[n].
| Preprocessing Mode | Preprocessed Input | Preprocessed Envelope | Envelope |
|---|---|---|---|
| Root mean square (RMS) | xp[n] = (x[n])2 | y[n] = √(yp[n]) | |
| Peak | xp[n] = |x[n]| | y[n] = yp[n] | |
| Bypass | xp[n] = x[n] | y[n] = yp[n] |
Extended Capabilities
Version History
Introduced in R2026b



