Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/FGrainDelay
Simple grain data structure for tracking grain state.
| Name | FGrain |
| Type | struct |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/GrainDelay.h |
| Include Path | #include "DSP/GrainDelay.h" |
Syntax
struct FGrain
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DelayTapPositionMilliseconds | float | Where the grain is currently tapped from the delay line. | DSP/GrainDelay.h | |
| DurationFrames | float | The total number of frames this grain will render for. | DSP/GrainDelay.h | |
| NumFramesRendered | float | The current frame the grain is in it's duration. | DSP/GrainDelay.h | |
| PitchShifter | FTapDelayPitchShifter | The tap delay pitch shifter which manages taps from the shared delay line for each grain. | DSP/GrainDelay.h | |
| PitchShiftRatioOffset | float | The unique randomized pitch scale, so we can modulate the base pitch scale. | DSP/GrainDelay.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetGrainPitchShiftRatio
(
const float InPitchShiftRatioBase, |
Helper function for computing the phaser frequency and phaser increment. | DSP/GrainDelay.h |