Navigation
API > API/Plugins > API/Plugins/HarmonixMidi > API/Plugins/HarmonixMidi/FBarMap
Description
Takes a bar index and computes the absolute (raw) total tick from the beginning of the midi data. This is a '0' based bar from the beginning of the raw midi data with no reference to count-in or pickup data. Optionally returns the number of beats in that bar and the number of ticks per beat.
| Name | BarIncludingCountInToTick |
| 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 BarIncludingCountInToTick
(
int32 BarIndex,
int32 * OutBeatsPerBar,
int32 * OutTicksPerBeat
) const
The 0-based absolute tick in the midi data.
Parameters
| Name | Remarks |
|---|---|
| BarIndex | 0 based index of the bar |
| optional | OutBeatsPerBar Number of beats in this bar (numerator of the time signature) |
| optional | OutTicksPerBeat Number of ticks per beat (based on the time signature denominator and the system's TTPQ) |