Navigation
API > API/Runtime > API/Runtime/SignalProcessing
A wave table oscillator class.
| Name | FWaveTableOsc |
| Type | class |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/WaveTableOsc.h |
| Include Path | #include "DSP/WaveTableOsc.h" |
Syntax
class FWaveTableOsc
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWaveTableOsc() |
Constructor. | DSP/WaveTableOsc.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FWaveTableOsc() |
Virtual Destructor. | DSP/WaveTableOsc.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Generate
(
float* OutputNormalPhase, |
Processes the wave table, outputs the normal and quad phase (optional) values. | DSP/WaveTableOsc.h | |
float GetFrequencyHz() |
Returns the frequency of the wave table oscillator. | DSP/WaveTableOsc.h | |
TArray< float > & GetTable () |
Returns the internal table used in the wave table. | DSP/WaveTableOsc.h | |
const TArray< float > & GetTable () |
DSP/WaveTableOsc.h | ||
EWaveTable::Type GetType() |
Returns the type of the wave table oscillator. | DSP/WaveTableOsc.h | |
void Init
(
const float InSampleRate, |
Initialize the wave table oscillator. | DSP/WaveTableOsc.h | |
void Reset() |
Resets the wave table read indices. | DSP/WaveTableOsc.h | |
void SetFrequencyHz
(
const float InFrequencyHz |
Sets the frequency of the wave table oscillator. | DSP/WaveTableOsc.h | |
void SetSampleRate
(
const float InSampleRate |
Sets the sample rate of the oscillator. | DSP/WaveTableOsc.h | |
void SetScaleAdd
(
const float InScale, |
Sets the amount to scale and add to the output of the wave table. | DSP/WaveTableOsc.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateFrequency() |
DSP/WaveTableOsc.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedPtr< FWaveTableOsc > CreateWaveTable
(
const EWaveTable::Type WaveTableType, |
Creates a wave table using internal factories for standard wave tables or uses custom wave table factor if it exists. | DSP/WaveTableOsc.h |