Navigation
API > API/Plugins > API/Plugins/HarmonixMidi > API/Plugins/HarmonixMidi/FBarMap
Description
Takes a "music timestamp" bar and computes the absolute (raw) total tick from the beginning of the midi data. Optionally returns the number of beats in that bar and the number of ticks per beat.
| Name | MusicTimestampBarToTick |
| 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 MusicTimestampBarToTick
(
int32 BarNumber,
int32 * OutBeatsPerBar,
int32 * OutTicksPerBeat
) const
The 0-based absolute tick in the midi data.
Parameters
| Name | Remarks |
|---|---|
| BarNumber | As would be returned in a MusicTimestamp, where Bar 1 is the "beginning of the music" after count-in and pickups. |
| 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) |