Navigation
API > API/Plugins > API/Plugins/MotoSynth
Class for granulating an engine.
| Name | FMotoSynthEngine |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MotoSynth/Source/MotoSynth/Public/MotoSynthEngine.h |
| Include Path | #include "MotoSynthEngine.h" |
Syntax
class FMotoSynthEngine :
public ISoundGenerator ,
public IMotoSynthEngine
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMotoSynthEngine() |
MotoSynthEngine.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMotoSynthEngine() |
MotoSynthEngine.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AccelerationSourceData | MotoSynthDataPtr | The source data. | MotoSynthEngine.h | |
| ActiveGrains | TArray< int32 > | The grain state management arrays. | MotoSynthEngine.h | |
| bGranularEngineEnabled | bool | MotoSynthEngine.h | ||
| bNoiseEnabled | bool | MotoSynthEngine.h | ||
| bNoiseEnvelopeEnabled | bool | MotoSynthEngine.h | ||
| bRPMWasSet | bool | MotoSynthEngine.h | ||
| bStereoWidenerEnabled | bool | MotoSynthEngine.h | ||
| bSynthToneEnabled | bool | MotoSynthEngine.h | ||
| bSynthToneEnvelopeEnabled | bool | MotoSynthEngine.h | ||
| bUpdateRPMCalculations | bool | MotoSynthEngine.h | ||
| bWasAccelerating | bool | MotoSynthEngine.h | ||
| CurrentAccelerationSourceDataIndex | int32 | MotoSynthEngine.h | ||
| CurrentDecelerationSourceDataIndex | int32 | MotoSynthEngine.h | ||
| CurrentRPM | float | The current RPM state. | MotoSynthEngine.h | |
| CurrentRPMSlope | float | MotoSynthEngine.h | ||
| CurrentRPMTime | float | MotoSynthEngine.h | ||
| DecelerationSourceData | MotoSynthDataPtr | MotoSynthEngine.h | ||
| DelayStereo | Audio::FDelayStereo | Stereo delay to "widen" the moto synth output. | MotoSynthEngine.h | |
| FreeGrains | TArray< int32 > | MotoSynthEngine.h | ||
| GrainCrossfadeSamples | int32 | Number of samples to use to do a grain crossfade. Smooths out discontinuities on grain boundaries. | MotoSynthEngine.h | |
| GrainCrossfadeSamplesForConstantRPMs | int32 | MotoSynthEngine.h | ||
| GrainEngineBuffer | TArray< float > | Mono scratch buffer for engine generation. | MotoSynthEngine.h | |
| GrainEnvelope | Audio::FGrainEnvelope | Grain Envelope buffer. | MotoSynthEngine.h | |
| GrainPool | TArray< FMotoSynthGrainRuntime > | The grain pool for runtime generation of audio. | MotoSynthEngine.h | |
| GrainTableRandomOffsetForConstantRPMs | int32 | MotoSynthEngine.h | ||
| GranularEngineVolume | float | MotoSynthEngine.h | ||
| NoiseAttackCurveRange | FVector2f | MotoSynthEngine.h | ||
| NoiseAttackTimeMsecRange | FVector2f | MotoSynthEngine.h | ||
| NoiseDecayCurveRange | FVector2f | MotoSynthEngine.h | ||
| NoiseDecayTimeMsecRange | FVector2f | MotoSynthEngine.h | ||
| NoiseEnv | Audio::FADEnvelope | MotoSynthEngine.h | ||
| NoiseEnvBuffer | Audio::AlignedFloatBuffer | MotoSynthEngine.h | ||
| NoiseFilter | Audio::FBiquadFilter | MotoSynthEngine.h | ||
| NoiseGen | Audio::FWhiteNoise | MotoSynthEngine.h | ||
| NoiseLPFRange | FVector2f | MotoSynthEngine.h | ||
| NoiseVolumeRange | FVector2f | MotoSynthEngine.h | ||
| NumGrainTableEntriesPerGrain | int32 | MotoSynthEngine.h | ||
| PitchScale | float | MotoSynthEngine.h | ||
| PreviousRPM | float | MotoSynthEngine.h | ||
| PreviousRPMSlope | float | MotoSynthEngine.h | ||
| RendererSampleRate | float | MotoSynthEngine.h | ||
| RPMFadeTime | float | MotoSynthEngine.h | ||
| RPMRange | FVector2f | MotoSynthEngine.h | ||
| RPMRange_RendererCallback | FVector2f | MotoSynthEngine.h | ||
| StartingRPM | float | MotoSynthEngine.h | ||
| SynthBuffer | TArray< float > | MotoSynthEngine.h | ||
| SynthEnv | Audio::FADEnvelope | MotoSynthEngine.h | ||
| SynthEnvBuffer | Audio::AlignedFloatBuffer | MotoSynthEngine.h | ||
| SynthFilter | Audio::FLadderFilter | MotoSynthEngine.h | ||
| SynthFilterFreqRange | FVector2f | MotoSynthEngine.h | ||
| SynthOctaveShift | int32 | MotoSynthEngine.h | ||
| SynthOsc | Audio::FOsc | MotoSynthEngine.h | ||
| SynthPitchUpdateDeltaSamples | int32 | MotoSynthEngine.h | ||
| SynthPitchUpdateSampleIndex | int32 | MotoSynthEngine.h | ||
| SynthToneAttackCurveRange | FVector2f | MotoSynthEngine.h | ||
| SynthToneAttackTimeMsecRange | FVector2f | MotoSynthEngine.h | ||
| SynthToneDecayCurveRange | FVector2f | MotoSynthEngine.h | ||
| SynthToneDecayTimeMsecRange | FVector2f | MotoSynthEngine.h | ||
| SynthToneFilterFrequencyRange | FVector2f | MotoSynthEngine.h | ||
| SynthToneVolumeRange | FVector2f | MotoSynthEngine.h | ||
| TargetGranularEngineVolume | float | MotoSynthEngine.h | ||
| TargetRPM | float | MotoSynthEngine.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetRPMRange
(
FVector2D& OutRPMRange |
Returns the min and max RPM range, taking into account the acceleration and deceleration data. | MotoSynthEngine.h | |
void Init
(
int32 InSampleRate |
MotoSynthEngine.h | ||
void Reset() |
MotoSynthEngine.h | ||
void SetPitchScale
(
float InPitchScale |
Sets a pitch scale on the moto synth to scale up or down the pitch of the output. | MotoSynthEngine.h | |
void SetRPM
(
float InRPM, |
Sets the RPM directly. Used if the engine is in ManualRPM mode. Will be ignored if we're in simulation mode. | MotoSynthEngine.h | |
void SetSourceData
(
uint32 AccelerationSourceID, |
Sets all the source data for the moto synth. | MotoSynthEngine.h |
Overridden from ISoundGenerator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GetDesiredNumSamplesToRenderPerCallback() |
MotoSynthEngine.h | ||
virtual int32 OnGenerateAudio
(
float* OutAudio, |
MotoSynthEngine.h |
Overridden from IMotoSynthEngine
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetSettings
(
const FMotoSynthRuntimeSettings& InSettings |
MotoSynthEngine.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsMotoSynthEngineEnabled() |
Queries if the engine is enabled at all. Checks a cvar. | MotoSynthEngine.h |