Navigation
API > API/Plugins > API/Plugins/HarmonixMetasound > API/Plugins/HarmonixMetasound/FMidiClock
Description
Given an input tick, outputs a looped tick if the input tick is > the StartTick of the Loop Region If the clock is not looping, or loop region length is 0, then the output will be unchanged.
The output tick will be in range [Min(Tick, LoopStartTick), LoopEndTick). Example: LoopRegion: (0, 100): 10 -> 10 100 -> 0 110 -> 10 -10 -> 90
LoopRegion: (40, 100): 0 -> 0 10 -> 10 -10 -> -10 99 -> 99 100 -> 40 110 -> 50
| Name | WrapTickIfLooping |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMetasound/Public/HarmonixMetasound/DataTypes/MidiClock.h |
| Include Path | #include "HarmonixMetasound/DataTypes/MidiClock.h" |
int32 WrapTickIfLooping
(
int32 Tick
) const
Looped Tick if Tick > LoopEnd: LoopedTick = LoopStart + (Tick - LoopStart) % (LoopEnd - LoopStart)
Parameters
| Name | Remarks |
|---|---|
| Tick | Absolute Tick |