FMotoSynthEngine

Class for granulating an engine.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MotoSynth

Header

/Engine/Plugins/Experimental/MotoSynth/Source/MotoSynth/Public/MotoSynthEngine.h

Include

#include "MotoSynthEngine.h"

Syntax

class FMotoSynthEngine :
    public ISoundGenerator,
    public IMotoSynthEngine

Remarks

Class for granulating an engine.

Constructors

Name Description

Public function

FMotoSynthEngine()

Destructors

Name Description

Public function

~FMotoSynthEngine()

Functions

Name Description

Public function

void

 

GetRPMRange

(
    FVector2D& OutRPMRange
)

Returns the min and max RPM range, taking into account the acceleration and deceleration data.

Public function

void

 

Init

(
    int32 InSampleRate
)

Public function Static

bool

 

IsMotoSynthEngineEnabled()

Queries if the engine is enabled at all. Checks a cvar.

Public function

void

 

Reset()

Public function

void

 

SetPitchScale

(
    float InPitchScale
)

Sets a pitch scale on the moto synth to scale up or down the pitch of the output.

Public function

void

 

SetRPM

(
    float InRPM,
    float InTimeSec
)

Sets the RPM directly. Used if the engine is in ManualRPM mode. Will be ignored if we're in simulation mode.

Public function

void

 

SetSourceData

(
    uint32 AccelerationSourceID,
    uint32 DecelerationSourceID
)

Sets all the source data for the moto synth.

Overridden from ISoundGenerator

Name Description

Public function Virtual Const

int32

 

GetDesiredNumSamplesToRenderPerCallback()

Returns the number of samples to render per callback.

Public function Virtual

int32

 

OnGenerateAudio

(
    float* OutAudio,
    int32 NumSamples
)

Called when a new buffer is required.

Overridden from IMotoSynthEngine

Name Description

Public function Virtual

void

 

SetSettings

(
    const FMotoSynthRuntimeSettings& I...
)

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