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), StartBar, and TicksPerQuarterNote.
NOTE: Here, bar and beat are as one would find them in a FMusicTimestamp structure... bar 1 beat 1 is the beginning of the song. Bars before '1' are count-in or pickup bars.
| Name | MusicTimestampBarBeatTickToTick |
| 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 MusicTimestampBarBeatTickToTick
(
int32 BarNumber,
int32 BeatInBar,
int32 TickInBeat
) const
The 0-based absolute tick in the midi data.
Parameters
| Name | Remarks |
|---|---|
| BarNumber | Bar in question. Remember... songs start at bar 1 beat 1! |
| 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. |