Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/WaveTableOsc.h |
| Include | #include "DSP/WaveTableOsc.h" |
Syntax
class FWaveTableOsc
Remarks
A wave table oscillator class.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | FrequencyHz | The frequency of the output (given the sample rate) | |
| float | NormalPhaseReadIndex | Normal phase read index. | |
| float | OutputAdd | Amount to add to the output. | |
| float | OutputScale | Amount to scale the output by. | |
| float | PhaseIncrement | The phase increment (based on frequency) | |
| float | QuadPhaseReadIndex | The quad-phase read index. | |
| float | SampleRate | The sample rate of the oscillator. | |
| TArray< float > | WaveTableBuffer | The wave table buffer. | |
| EWaveTable::Type | WaveTableType | The wave table oscillator type. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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. | |
| void | Generate
(
float* OutputNormalPhase, |
Processes the wave table, outputs the normal and quad phase (optional) values. | |
| float | Returns the frequency of the wave table oscillator. | ||
| TArray< float > & | GetTable () |
Returns the internal table used in the wave table. | |
| const TArray< float > & | GetTable () |
Returns the internal table used in the wave table. | |
| EWaveTable::Type | GetType () |
Returns the type of the wave table oscillator. | |
| void | Init
(
const float InSampleRate, |
Initialize the wave table oscillator. | |
| void | Reset () |
Resets the wave table read indices. | |
| void | SetFrequencyHz
(
const float InFrequencyHz |
Sets the frequency of the wave table oscillator. | |
| void | SetSampleRate
(
const float InSampleRate |
Sets the sample rate of the oscillator. | |
| void | SetScaleAdd
(
const float InScale, |
Sets the amount to scale and add to the output of the wave table. | |
| void |