Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/SineWaveTableOsc.h |
| Include | #include "DSP/SineWaveTableOsc.h" |
Syntax
class FSineWaveTableOsc
Remarks
A sinusoidal wave table oscillator class.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | FrequencyHz | The frequency of the output (given the sample rate) | |
| float | InitialPhase | The initial/cached phase, will be clamped to range 0.0 - 1.0f. | |
| float | InstantaneousPhase | The instantaneous phase, clamped to range 0.0 - 1.0f. | |
| float | PhaseIncrement | The phase increment (based on frequency) | |
| float | ReadIndex | Read index. | |
| float | SampleRate | The sample rate of the oscillator. | |
| const TArray< float > & | WaveTableBuffer | The wave table buffer. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Generate
(
float* OutBuffer, |
Processes the wave table and fills a buffer. | |
| float | Returns the frequency of the wave table oscillator. | ||
| const TArray< float > & | GetWaveTable () |
The static sinusoidal wave table. | |
| 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 | SetPhase
(
const float InPhase |
Sets the phase of the wave table oscillator. | |
| void | SetSampleRate
(
const float InSampleRate |
Sets the sample rate of the oscillator. | |
| void |