FOsc

Pitched oscillator.

Windows
MacOS
Linux

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

Name Description

Protected variable

float

 

DPW_z1

Used to store state for triangular differentiator.

Protected variable

FWhiteNoise

 

Noise

A noise generator

Protected variable

EOsc::Type

 

OscType

The type of the oscillator.

Protected variable

FExponentialEas...

 

PulseWidthLerped

The pulse width base lerped.

Protected variable

float

 

TriangleSign

Current sign of the square mod, used for triangle wave generation.

Constructors

Name Description

Public function

FOsc()

Destructors

Name Description

Public function Virtual

~FOsc()

Functions

Name Description

Public function Const

EOsc::Type

 

GetType()

Gets the oscillator type.

Protected function

float

 

PolySmooth

(
    const float InPhase,
    const float InPhaseInc
)

Smooth out the saw-tooth discontinuities to improve aliasing.

Public function

void

 

SetType

(
    const EOsc::Type InType
)

Sets the oscillator type.

Overridden from IOscBase

Name Description

Public function Virtual

float

 

Generate

(
    float* AuxOutput
)

Generates the next sample of audio, optionally passes out the auxillary output (supported in some oscillators)

Public function Virtual

void

 

Reset()

Resets the oscillator.

Public function Virtual

void

 

Start()

Starts the oscillator.

Public function Virtual

void

 

Stop()

Stops the oscillator.

Public function Virtual

void

 

Update()

Updates oscillator state.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss