![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <EnvelopeFollower.h>
A simple utility that returns a smoothed value given audio input using an RC circuit. Used for following the envelope of an audio stream.
| Audio::FEnvelopeFollower::FEnvelopeFollower | ( | ) |
Construct an envelope follower.
| Audio::FEnvelopeFollower::FEnvelopeFollower | ( | const FEnvelopeFollowerInitParams & | InParams | ) |
Construct an envelope follower.
| bool Audio::FEnvelopeFollower::GetAnalog | ( | ) | const |
Returns whether or not to use analog or digital time constants
| float Audio::FEnvelopeFollower::GetAttackTimeMsec | ( | ) | const |
Returns the envelope follower attack time (how fast the envelope responds to input)
Retrieve the final values of the envelope for each channel.
| EPeakMode::Type Audio::FEnvelopeFollower::GetMode | ( | ) | const |
Returns the input mode of the envelope follower
| int32 Audio::FEnvelopeFollower::GetNumChannels | ( | ) | const |
Returns the number of channels per an input frame
| float Audio::FEnvelopeFollower::GetReleaseTimeMsec | ( | ) | const |
Returns the envelope follower release time (how slow the envelope dampens from input)
| float Audio::FEnvelopeFollower::GetSampleRate | ( | ) | const |
Returns the number of frames per a second set on initialization
| void Audio::FEnvelopeFollower::Init | ( | const FEnvelopeFollowerInitParams & | InParams | ) |
Initialize the envelope follower.
Calculate envelope
| InBuffer | - Interleaved input data. |
| InNumFrames | - Number of frames in InBuffer. |
| void Audio::FEnvelopeFollower::ProcessAudio | ( | const float * | InBuffer, |
| int32 | InNumFrames, | ||
| float * | OutBuffer | ||
| ) |
Calculate envelope per sample.
| InBuffer | - Interleaved input data. |
| InNumFrames | - Number of frames in InBuffer. |
| OutBuffer | - Output interleaved data. Should be same size as InBuffer. |
| void Audio::FEnvelopeFollower::Reset | ( | ) |
Resets the state of the envelope follower
Sets whether or not to use analog or digital time constants
Sets the envelope follower attack time (how fast the envelope responds to input)
| void Audio::FEnvelopeFollower::SetMode | ( | EPeakMode::Type | InMode | ) |
Sets the input mode of the envelope follower
Set the number of channels per an input frame.
Sets the envelope follower release time (how slow the envelope dampens from input)