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...
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback