Navigation
API > API/Runtime > API/Runtime/SignalProcessing
Class which handles the details of event quantization.
| Name | FEventQuantizer |
| Type | class |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/EventQuantizer.h |
| Include Path | #include "DSP/EventQuantizer.h" |
Syntax
class FEventQuantizer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FEventQuantizer() |
DSP/EventQuantizer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FEventQuantizer() |
DSP/EventQuantizer.h |
Structs
| Name | Remarks |
|---|---|
| FEventQuantizationState | Struct for defining and hold quantization timing state. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BPMQuantizationState | FEventQuantizationState | Quantization state used for quantizing BPM changes. | DSP/EventQuantizer.h | |
| bQuantizationSettingsSet | bool | Whether or not we've set the quantization settings. | DSP/EventQuantizer.h | |
| bResetEventState | bool | Whether or not to reset pending event states. Set after quantization settings have changed. | DSP/EventQuantizer.h | |
| CopiedEvents | TArray< TFunction< void(uint32 NumFramesOffset)> > | Scratch buffer for copied events. | DSP/EventQuantizer.h | |
| EventQuantizationForSettingsChange | EEventQuantization | DSP/EventQuantizer.h | ||
| EventQuantizationStates | FEventQuantizationState | Array of quantization states, one for each quantization type Zero'th index is reserved for pending quantization events | DSP/EventQuantizer.h | |
| FrameCount | uint32 | The frame count of the whole event quantizer since it started. Passed to listeners. | DSP/EventQuantizer.h | |
| NumFramesPerBar | uint32 | DSP/EventQuantizer.h | ||
| NumFramesPerBeat | uint32 | DSP/EventQuantizer.h | ||
| QuantizationSettings | FEventQuantizationSettings | The quantization settings of the event quantizer. | DSP/EventQuantizer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EnqueueEvent
(
EEventQuantization InQuantization, |
Enqueues a quantized event. | DSP/EventQuantizer.h | |
uint16 GetBeatDivision() |
DSP/EventQuantizer.h | ||
float GetBPM() |
DSP/EventQuantizer.h | ||
uint32 GetDurationInFrames
(
int32 NumBars, |
DSP/EventQuantizer.h | ||
float GetPlaybacktimeSeconds() |
DSP/EventQuantizer.h | ||
const FEventQuantizationSettings & GetQuantizationSettings() |
DSP/EventQuantizer.h | ||
void NotifyEvents
(
int32 NumFrames |
Called to perform notifications for any events which happen in the next given number of frames. | DSP/EventQuantizer.h | |
void RegisterListenerForEvent
(
IQuantizedEventListener* InListener, |
Register event listener for specific events. | DSP/EventQuantizer.h | |
void SetBeatDivision
(
const uint16 InBeatDivision |
Set the beat division. | DSP/EventQuantizer.h | |
void SetBPM
(
const float InBPM |
Allows continuous control over BPM for the event quantizer. | DSP/EventQuantizer.h | |
void SetQuantizationSettings
(
const FEventQuantizationSettings& QuantizationSettings |
Sets the quantization settings for the event quantizer. | DSP/EventQuantizer.h | |
void UnregisterListenerForEvent
(
IQuantizedEventListener* InListener |
Unregisters the event listener for all quantization events. | DSP/EventQuantizer.h | |
void UnregisterListenerForEvent
(
IQuantizedEventListener* InListener, |
Unregister the event listener for specific quantization event. | DSP/EventQuantizer.h |