Navigation
API > API/Plugins > API/Plugins/HarmonixMidi > API/Plugins/HarmonixMidi/FBarMap
Description
Take a bar, beat (1 based) within that bar, and tick (0 based) within that beat and computes the absolute (raw) total tick from the beginning of the midi data. Based on the time signature(s), and TicksPerQuarterNote. Here, bar is a 'raw' bar from the beginning of the midi data. There is no consideration of count-in or pickup bars.
| Name | BarBeatTickIncludingCountInToTick |
| 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 |
int32 BarBeatTickIncludingCountInToTick
(
int32 BarIndex,
int32 BeatInBar,
int32 TickInBeat
) const
The 0-based absolute tick in the midi data.
Parameters
| Name | Remarks |
|---|---|
| BarIndex | Bar in question. The beginning of the midi data is bar 0! |
| BeatInBar | 1-based beat in the bar. Given a time signature of x/y, there are 'x' beats in a bar, and each beat is 'y' in length. |
| TickInBeat | 0-based tick in the Beat. NOTE: The number of ticks in a beat depends on the length of the beat (the denominator in the time signature) and the map's ticks per quarter note. |