Navigation
API > API/Runtime > API/Runtime/SignalProcessing
Conversion between attack/release time and attack/release sample counts.
| Name | FAttackRelease |
| Type | class |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/EnvelopeFollower.h |
| Include Path | #include "DSP/EnvelopeFollower.h" |
Syntax
class FAttackRelease
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAttackRelease
(
float InSampleRate, |
Construct an FAttackRelease object. | DSP/EnvelopeFollower.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AnalogTimeConstant | float | See https://en.wikipedia.org/wiki/RC_time_constant Time constants indicate how quickly the envelope follower responds to changes in input | DSP/EnvelopeFollower.h |
| DigitalTimeConstant | float | DSP/EnvelopeFollower.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AttackTimeMsec | float | DSP/EnvelopeFollower.h | ||
| AttackTimeSamples | float | DSP/EnvelopeFollower.h | ||
| bIsAnalog | bool | DSP/EnvelopeFollower.h | ||
| ReleaseTimeMsec | float | DSP/EnvelopeFollower.h | ||
| ReleaseTimeSamples | float | DSP/EnvelopeFollower.h | ||
| SampleRate | float | DSP/EnvelopeFollower.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetAnalog() |
Get whether set to analog or digital time constant. (True is analog, false is digital) | DSP/EnvelopeFollower.h | |
float GetAttackTimeMsec() |
Get the attack time in milliseconds. | DSP/EnvelopeFollower.h | |
float GetAttackTimeSamples() |
Get the attack time in samples. | DSP/EnvelopeFollower.h | |
float GetReleaseTimeMsec() |
Get the release time in milliseconds. | DSP/EnvelopeFollower.h | |
float GetReleaseTimeSamples() |
Get the release time in samples. | DSP/EnvelopeFollower.h | |
float GetSampleRate() |
Get the sample rate. | DSP/EnvelopeFollower.h | |
void SetAnalog
(
bool bInIsAnalog |
DSP/EnvelopeFollower.h | ||
void SetAttackTime
(
float InAttackTimeMsec |
DSP/EnvelopeFollower.h | ||
void SetReleaseTime
(
float InReleaseTimeMsec |
DSP/EnvelopeFollower.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetSampleRate
(
float InSampleRate |
DSP/EnvelopeFollower.h |