Navigation
API > API/Plugins > API/Plugins/HarmonixMidi > API/Plugins/HarmonixMidi/FBarMap
Description
Take "raw" tick (tick from the beginning of the midi data and in units of TicksPerQuarterNote) and return a bar (0 based), beat in bar (1 based) within that bar, and tick (0 based) within that beat. Here, the returned position is a 'raw' position from the beginning of the midi data. There is no consideration of count-in or pickup bars.
| Name | TickToBarBeatTickIncludingCountIn |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMidi/Public/HarmonixMidi/BarMap.h |
| Include Path | #include "HarmonixMidi/BarMap.h" |
| Source | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMidi/Private/HarmonixMidi/BarMap.cpp |
void TickToBarBeatTickIncludingCountIn
(
int32 RawTick,
int32 & OutBarIndex,
int32 & OutBeatInBar,
int32 & OutTickIndexInBeat,
int32 * OutBeatsPerBar,
int32 * OutTicksPerBeat
) const
Parameters
| Name | Remarks |
|---|---|
| RawTick | from the beginning of the midi data. |
| OutBarIndex | (output) |
| OutBeatInBar | (1 based!) (output) |
| OutTickIndexInBeat | (output) |
| OutBeatsPerBar | (output - optional) |
| OutTicksPerBeat | (output - optional) |