Navigation
API > API/Plugins > API/Plugins/MotoSynth
| Name | FMotoSynthGrainRuntime |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MotoSynth/Source/MotoSynth/Public/MotoSynthEngine.h |
| Include Path | #include "MotoSynthEngine.h" |
Syntax
class FMotoSynthGrainRuntime
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentRuntimeRPM | float | MotoSynthEngine.h | ||
| CurrentSampleIndex | float | MotoSynthEngine.h | ||
| EnginePitchScale | float | MotoSynthEngine.h | ||
| FadeOutStartIndex | float | MotoSynthEngine.h | ||
| FadeSamples | float | MotoSynthEngine.h | ||
| GrainArrayView | TArrayView< const uint8 > | MotoSynthEngine.h | ||
| GrainEnvelope | const Audio::FGrainEnvelope * | MotoSynthEngine.h | ||
| GrainPitchScale | float | MotoSynthEngine.h | ||
| GrainRPMDelta | float | MotoSynthEngine.h | ||
| GrainRPMStart | float | MotoSynthEngine.h | ||
| NumBytesPerSample | uint8 | MotoSynthEngine.h | ||
| NumSamples | int32 | MotoSynthEngine.h | ||
| StartingRPM | float | MotoSynthEngine.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GenerateSample() |
Generates a sample from the grain. Returns true if fading out. | MotoSynthEngine.h | |
void Init
(
const FGrainInitParams& InInitParams |
MotoSynthEngine.h | ||
bool IsDone() |
If the grain is done. | MotoSynthEngine.h | |
bool IsNearingEnd() |
Returns true if the grain is nearing its end (and a new grain needs to start fading in. | MotoSynthEngine.h | |
void SetRPM
(
int32 InRPM |
Updates the grain's RPM. | MotoSynthEngine.h |