Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/Granulator.h |
| Include | #include "DSP/Granulator.h" |
Syntax
class FGrain
Remarks
Class representing a grain of audio.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | CurrentFrameCount | The current frame count the grain is on. | |
| float | CurrentFrequency | Current frequency. | |
| float | CurrentPan | The current pan. | |
| float | CurrentPitch | The current pitch. | |
| float | CurrentVolumeScale | The current volume scale. | |
| float | DurationScale | How quickly we read through the envelope. | |
| float | EndFrameCount | The end frame count the grain will finish on. | |
| TArray< float > | FrameScratch | Scratch buffer for sample reading. | |
| FGrainData | GrainData | Grain data struct. | |
| int32 | GrainId | Grain id. | |
| FOsc | Osc | Oscillator to use for synthesis mode. | |
| FGranularSynth * | Parent | Parent synth. | |
| FSampleBufferReader | SampleBufferReader | The sample buffer reader to use for the grain of the mode is granulation. | |
| TArray< float > | SpeakerMap | Speaker map based on the current grain azimuth. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FGrain
(
const int32 InGrainId, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FGrain () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GenerateFrame
(
float* OutStereoFrame |
Generates the next frame from the grain. | |
| float | |||
| bool | IsDone () |
Queries if this grain is finished playing and needs to be reaped. | |
| void | Play
(
const FGrainData& InGrainData |
Plays the grain with the supplied grain data. | |
| void | SetDurationScale
(
const float InDurationScale |
Changes how quickly the grain reads through envelope. | |
| void | SetOscFrequency
(
const float InFrequency |
Sets the oscillator frequency. | |
| void | SetOscFrequencyModuation
(
const float InFrequencyModulation |
Sets the oscillator frequency modulation. | |
| void | SetOscType
(
const EOsc::Type InType |
Changes the oscillator type for the grain (if the grain is in synth mode) | |
| void | SetPanModulation
(
const float InPanModulation |
Sets the pan modulation angle. | |
| void | SetPitchModulation
(
const float InPitchModulation |
Sets the grain pitch modulation. | |
| void | SetVolumeModulation
(
const float InVolumeModulation |
Sets the grain modulation. |