FMonoWaveTable

Windows
MacOS
Linux

References

Module

Synthesis

Header

/Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Public/MonoWaveTable.h

Include

#include "MonoWaveTable.h"

Syntax

class FMonoWaveTable

Variables

Name Description

Protected variable

Audio::FEnvelop...

 

AmpEnv

Protected variable

uint8: 1

 

bInitialized

Protected variable

uint8: 1

 

bIsPlaying

Protected variable

uint8: 1

 

bIsSustainPedalPressed

Protected variable

float

 

FrequencyInHz

Frequency of current note (mono)

Protected variable

float

 

LastAmpSustain

Protected variable

float

 

LastLPFFreqHz

Protected variable

float

 

LastWaveTablePosition

Protected variable

Audio::FLadderF...

 

LPF

Filters.

Protected variable

float

 

LPFBaseFreqHz

The current base frequency of LPF (modulators contribute to final value)

Protected variable

float

 

LPFCeilingHz

Protected variable

Audio::FEnvelop...

 

LPFEnv

Protected variable

float

 

LPFMaxModOffsetOctaves

Protected variable

float

 

NewAmpSustain

Protected variable

TArray< float >

 

NoteStack

Frequencies of unreleased notes

Protected variable

float

 

OutputSampleRate

Audio rendering Sample rate.

Protected variable

float

 

Phase

Index into Wave Table.

Protected variable

float

 

PitchOffsetCents

Protected variable

Audio::FEnvelop...

 

PosEnv

Protected variable

Audio::FLFO

 

PosLfo

Control data

Protected variable

TArray< float >

 

WaveTableLookupOutput

Protected variable

TArray< TSample...

 

WaveTableMatrix

Table TArray<TArray> WaveTableMatrix;.

Protected variable

float

 

WaveTablePosition

Current base index into wave table (modulators contribute to final position) (float between [0.0, 1.0]; 0.0 = first wave table, 1.0 = last wave table)

Protected variable

float

 

WaveTableResolution

The number of samples in a wave table entry.

Constructors

Name Description

Public function

FMonoWaveTable()

Destructors

Name Description

Public function

~FMonoWaveTable()

Functions

Name Description

Protected function

float

 

GetMonoSynthOutput

(
    float InTablePosition
)

Public function

float

 

GetWaveTableResolution()

Oscillator/Table setting.

Public function

void

 

Init

(
    int32& InSampleRate,
    DefaultWaveTableIndexType InNumTabl...,
    float InWaveTableResolution
)

Public function

void

 

NoteOff

(
    float InFrequency
)

Public function

void

 

NoteOn

(
    float InFrequency,
    float Velocity
)

Public function

DefaultWaveT...

 

OnGenerateAudio

(
    float* OutAudio,
    DefaultWaveTableIndexType NumSample...
)

Generate the next frame of audio.

Public function

void

 

SetAmpEnvelopeAttackTime

(
    const float InAttackTimeMsec
)

Envelope setting Amp

Public function

void

 

SetAmpEnvelopeBiasDepth

(
    const float InDepth
)

Public function

void

 

SetAmpEnvelopeBiasInvert

(
    const bool bInBiasInvert
)

Public function

void

 

SetAmpEnvelopeDecayTime

(
    const float InDecayTimeMsec
)

Public function

void

 

SetAmpEnvelopeDepth

(
    const float InDepth
)

Public function

void

 

SetAmpEnvelopeInvert

(
    const bool bInInvert
)

Public function

void

 

SetAmpEnvelopeReleaseTime

(
    const float InReleaseTimeMsec
)

Public function

void

 

SetAmpEnvelopeSustainGain

(
    const float InSustainGain
)

Public function

void

 

SetFilterEnvelopeAttackTime

(
    const float InAttackTimeMsec
)

Filter.

Public function

void

 

SetFilterEnvelopeBiasDepth

(
    const float InDepth
)

Public function

void

 

SetFilterEnvelopeBiasInvert

(
    const bool bInBiasInvert
)

Public function

void

 

SetFilterEnvelopeDepth

(
    const float InDepth
)

Public function

void

 

SetFilterEnvelopeInvert

(
    const bool bInInvert
)

Public function

void

 

SetFilterEnvelopenDecayTime

(
    const float InDecayTimeMsec
)

Public function

void

 

SetFilterEnvelopeReleaseTime

(
    const float InReleaseTimeMsec
)

Public function

void

 

SetFilterEnvelopeSustainGain

(
    const float InSustainGain
)

Public function

void

 

SetFrequency

(
    float InFrequencyHz
)

Public function

void

 

SetFrequencyOffset

(
    float InFrequencyCents
)

Public function

void

 

SetLpfFreq

(
    float InNewFrequency
)

Filter setting.

Public function

void

 

SetLpfRes

(
    float InNewQ
)

Public function

void

 

SetPosition

(
    float InPosition
)

Public function

void

 

SetPositionEnvelopeAttackTime

(
    const float InAttackTimeMsec
)

Table Position.

Public function

void

 

SetPositionEnvelopeBiasDepth

(
    const float InDepth
)

Public function

void

 

SetPositionEnvelopeBiasInvert

(
    const bool bInBiasInvert
)

Public function

void

 

SetPositionEnvelopeDecayTime

(
    const float InDecayTimeMsec
)

Public function

void

 

SetPositionEnvelopeDepth

(
    const float InDepth
)

Public function

void

 

SetPositionEnvelopeInvert

(
    const bool bInInvert
)

Public function

void

 

SetPositionEnvelopeReleaseTime

(
    const float InReleaseTimeMsec
)

Public function

void

 

SetPositionEnvelopeSustainGain

(
    const float InSustainGain
)

Public function

void

 

SetPosLFODepth

(
    const float InPosLFODepth
)

Public function

void

 

SetPosLFOFrequency

(
    const float InPosLFOFrequency
)

LFO setting Table Position

Public function

void

 

SetPosLFOType

(
    const ELFO::Type InPosLFOType
)

Public function

void

 

SetSustainPedalPressed

(
    bool bInSustainPedalState
)

Performance.

Public function

void

 

UpdateWaveTable

(
    DefaultWaveTableIndexType Index,
    const TArray< float >& InTable
)

Protected function

float

 

UpdateWaveTableLookupOutput

(
    float InPhaseIndex
)

Helper that performs fractional indexing and wraps TableIndex

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