Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
Inheritance Hierarchy
- IOscBase
- FOsc
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/Osc.h |
| Include | #include "DSP/Osc.h" |
Syntax
class FOsc : public Audio::IOscBase
Remarks
Pitched oscillator.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | DPW_z1 | Used to store state for triangular differentiator. | |
| FWhiteNoise | Noise | A noise generator | |
| EOsc::Type | OscType | The type of the oscillator. | |
| FExponentialEase | PulseWidthLerped | The pulse width base lerped. | |
| float | TriangleSign | Current sign of the square mod, used for triangle wave generation. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FOsc () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FOsc () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EOsc::Type | GetType () |
Gets the oscillator type. | |
| float | PolySmooth
(
const float InPhase, |
Smooth out the saw-tooth discontinuities to improve aliasing. | |
| void | SetType
(
const EOsc::Type InType |
Sets the oscillator type. |
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 | Reset () |
Resets the oscillator. | |
| void | Start () |
Starts the oscillator. | |
| void | Stop () |
Stops the oscillator. | |
| void | Update () |
Updates oscillator state. |