Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
Inheritance Hierarchy
- IOscBase
- FLFO
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/LFO.h |
| Include | #include "DSP/LFO.h" |
Syntax
class FLFO : public Audio::IOscBase
Remarks
Low frequency oscillator.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bBipolar | ||
| float | ExponentialFactor | ||
| float | LastOutput | ||
| ELFOMode::Type | LFOMode | ||
| ELFO::Type | LFOType | ||
| float | LoopCount | ||
| float | ModAdd | ||
| FPatchSource | ModNormalPhase | ||
| FPatchSource | ModQuadPhase | ||
| float | ModScale | ||
| float | PhaseOffset | ||
| float | QuadLastOutput | ||
| uint32 | RSHCounter | ||
| float | RSHValue |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FLFO () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FLFO () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | ComputeLFO
(
float InputPhase, |
||
| float | GetInitPhase () |
Returns initial phase, which differs between generators ensuring certain LFO shapes start on rising edge from zero- crossing by default (assuming user's provided phase offset is 0). | |
| ELFOMode::Type | GetMode () |
Returns current mode of LFO. | |
| FPatchSource | Returns mod source's normal phase patch source. | ||
| FPatchSource | Returns mod source's quad phase patch source. | ||
| ELFO::Type | GetType () |
Returns current waveform type of LFO generator. | |
| void | SetBipolar
(
const bool bInBipolar |
Set whether or not LFO outputs in bipolar domain or unipolar (false) domain. Defaults to bipolar. | |
| void | SetExponentialFactor
(
const float InExpFactor |
Sets the exponential factor of LFO if type is "exponential". Clamped to positive, non-zero values. | |
| void | SetMode
(
const ELFOMode::Type InLFOMode |
Sets mode of LFO (Looping or one-shot. Free not supported) | |
| void | SetPhaseOffset
(
const float InOffset |
Sets a phase offset for the LFO. Clamped to positive values only. | |
| void | SetType
(
const ELFO::Type InLFOType |
Set the waveform type of LFO generator. |
Overridden from IOscBase
| Type | Name | Description | |
|---|---|---|---|
| float | Generate
(
float* AuxOutput |
Generates the next sample of audio, optionally passes out the auxillary output (supported in some oscillators) | |
| void | Init
(
const float InSampleRate, |
Initializes the oscillator. | |
| void | Reset () |
Resets the oscillator. | |
| void | ResetPhase () |
Resets generator to initial phase. | |
| void | Start () |
Starts the oscillator. | |
| void | Stop () |
Stops the oscillator. |