Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
References
| Module | MetasoundFrontend |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundTrigger.h |
| Include | #include "MetasoundTrigger.h" |
Syntax
class FTrigger
Remarks
FTrigger supports sample accurate triggering, sample accurate internal tracking, and a convenient interface for running trigger-aligned audio signal processing routines on buffers..
FTriggers are triggered using FTrigger::TriggerTime or FTrigger::TriggerFrame. FTriggers track time internally by calling FTrigger::Advance. Executing audio signal processing on buffers can be performed by calling FTrigger::ExecuteBlock or FTrigger::LookAhead.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTrigger
(
const FOperatorSettings& InSettings |
FTrigger constructor. | ||
FTrigger
(
const FOperatorSettings& InSettings, |
FTrigger constructor. | ||
FTrigger
(
const FOperatorSettings& InSettings, |
FTrigger constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Advance
(
int32 InNumFrames |
Advance internal frame counters by specific frame count. | |
| void | AdvanceBlock () |
Advance internal frame counters by block size. | |
| void | AssignRawParameter
(
const void* ParamPackPayload |
For use when a Trigger request is found in a Parameter Pack | |
| void | ExecuteBlock
(
PreTriggerType InPreTrigger, |
Executes one block of frames and calls underlying InPreTrigger and InOnTrigger functions with frame indices. | |
| int32 | First () |
Returns frame index for the first trigger in the block. | |
| const TArray< int32 > & | |||
| bool | IsTriggered () |
Returns true if there are any triggered frames. | |
| bool | Returns true there is a trigger in the current block of audio. | ||
| int32 | Last () |
Returns frame index for the last trigger in the block. | |
| void | LookAhead
(
int32 InNumFrames, |
Executes a desired number of frames and calls underlying InPreTrigger and InOnTrigger functions with frame indices. | |
| int32 | Num () |
Number of triggered frames. | |
| int32 | Returns true if there is a trigger in the current block of audio | ||
| void | RemoveAfter
(
int32 InFrameIndex |
Removes all triggers which occur after the frame index. | |
| void | Reset () |
Removes all triggered frames. | |
| void | TriggerFrame
(
int32 InFrameToTrigger |
Trigger a specific frame in the future. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Implicit conversion of FTrigger into bool by calling IsTriggeredInBlock() | |||
| int32 | operator[]
(
int32 InTriggerIndex |
Returns frame index for a given trigger index. |