Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/Amp.h |
| Include | #include "DSP/Amp.h" |
Syntax
class FAmp
Remarks
Class which manages scaling audio input and performing panning operations.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bChanged | Whether or not something changed since the last time generate was called. | |
| int32 | CurrentLerpSample | ||
| float | GainControl | Direct input gain control (i.e. gain slider) | |
| float | GainEnv | Gain set from envelope. | |
| FPatchDestination | GainEnvDest | ||
| float | GainMax | ||
| float | GainMin | Min and max output gain, can be changed based on need. | |
| float | GainMod | A modulated value of gain, can be used for tremolo or amplitude modulation. | |
| FPatchDestination | GainPanDest | ||
| FPatchDestination | GainScaleDest | ||
| float | GainVelocity | Gain due to midi velocity. | |
| float | LeftGain | The final left and right output gain values. | |
| FModulationMatrix * | ModMatrix | Mod matrix. | |
| float | Pan | Linear pan value [-1.0, 1.0]. | |
| float | PanMod | Linear pan modulator. | |
| float | RightGain | ||
| int32 | TargetDeltaSamples | ||
| float | TargetLeftGain | Values used for lerping gain values to avoid zippering. | |
| float | TargetLeftSlope | ||
| float | TargetRightGain | ||
| float | TargetRightSlope | ||
| int32 | VoiceId |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAmp () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FAmp () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Generate
(
float& OutGainLeft, |
Generates a new gain value for left and right outputs. | |
| const FPatchDestination | |||
| const FPatchDestination | |||
| const FPatchDestination | |||
| void | Init
(
const int32 InVoiceId, |
Initializes the amp with the mod matrix. | |
| void | ProcessAudio
(
const float LeftIn, |
Takes mono input and generates stereo output. | |
| void | ProcessAudio
(
const float LeftIn, |
Takes stereo input and generates stereo output. | |
| void | Reset () |
||
| void | SetGain
(
const float InGainLinear |
Sets the direct gain in linear. | |
| void | SetGainDb
(
const float InGainDB |
Sets the direct gain in decibel. | |
| void | SetGainEnv
(
const float InGainEnv |
Sets the gain based on an envelope value. | |
| void | SetGainEnvDb
(
const float InGainEnvDb |
Sets the gain based on an envelope value. | |
| void | SetGainMod
(
const float InBipolarGainModLinear |
Sets the gain modulation in linear. Expects modulation value to be bipolar (for AM synth, etc) | |
| void | SetGainModDb
(
const float InGainModDb |
Sets the gain modulation in decibel. | |
| void | SetGainRange
(
const float InMin, |
Change the allowed range of the gain output. | |
| void | SetPan
(
const float InPan |
Sets the pan. | |
| void | SetPanModulator
(
const float InPanMod |
Sets the pan modulator. | |
| void | SetVelocity
(
const float InVelocity |
Sets the gain using a midi velocity value. | |
| void | Update () |
Updates the final output left and right gain based on current settings. |