Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/EnvelopeFollower.h |
| Include | #include "DSP/EnvelopeFollower.h" |
Syntax
class FEnvelopeFollower
Remarks
A simple utility that returns a smoothed value given audio input using an RC circuit. Used for following the envelope of an audio stream.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Construct an envelope follower. | |||
FEnvelopeFollower
(
const FEnvelopeFollowerInitParams& InParams |
Construct an envelope follower. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GetAnalog () |
Returns whether or not to use analog or digital time constants | |
| float | Returns the envelope follower attack time (how fast the envelope responds to input) | ||
| const TArray< float > & | Retrieve the final values of the envelope for each channel. | ||
| EPeakMode::Type | GetMode () |
Returns the input mode of the envelope follower | |
| int32 | Returns the number of channels per an input frame | ||
| float | Returns the envelope follower release time (how slow the envelope dampens from input) | ||
| float | Returns the number of frames per a second set on initialization | ||
| void | Init
(
const FEnvelopeFollowerInitParams& InParams |
Initialize the envelope follower. | |
| void | ProcessAudio
(
const float* InBuffer, |
Calculate envelope per sample. | |
| void | ProcessAudio
(
const float* InBuffer, |
Calculate envelope | |
| void | Reset () |
Resets the state of the envelope follower | |
| void | SetAnalog
(
bool bInIsAnalog |
Sets whether or not to use analog or digital time constants | |
| void | SetAttackTime
(
float InAttackTimeMsec |
Sets the envelope follower attack time (how fast the envelope responds to input) | |
| void | SetMode
(
EPeakMode::Type InMode |
Sets the input mode of the envelope follower | |
| void | SetNumChannels
(
int32 InNumChannels |
Set the number of channels per an input frame. | |
| void | SetReleaseTime
(
float InReleaseTimeMsec |
Sets the envelope follower release time (how slow the envelope dampens from input) |