Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend > API/Plugins/MetasoundFrontend/FTrigger
References
| Module | MetasoundFrontend |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundTrigger.h |
| Include | #include "MetasoundTrigger.h" |
template<typename PreTriggerType, typename OnTriggerType>
void LookAhead
&40;
int32 InNumFrames,
PreTriggerType InPreTrigger,
OnTriggerType InOnTrigger
&41; const
Remarks
Executes a desired number of frames and calls underlying InPreTrigger and InOnTrigger functions with frame indices.
Parameters
| Name | Description |
|---|---|
| InNumFrames | The number of frames to look ahead. |
| InPreTrigger | A function which handles frames before the first trigger in the range of frames. The function must accept the arguments (int32 StartFrame, int32 EndFrame). |
| InOnTrigger | A function which handles frames starting with the triggers index and ending the next trigger index or InNumFrames The function must accept the arguments (int32 StartFrame, int32 EndFrame). |