audio/tempo_track.h file

Object to hold information for the Tempo track.



enum BeatUnit { BEAT_UNIT_2, BEAT_UNIT_4, BEAT_UNIT_8, BEAT_UNIT_16 }
Beat unit.


using BeatUnit = enum BeatUnit
Beat unit.


auto tempo_track_default(int track_pos) -> Track*
Creates the default tempo track.
void tempo_track_init(Track* track)
Inits the tempo track.
void tempo_track_clear(Track* self)
Removes all objects from the tempo track.
auto tempo_track_get_bpm_at_pos(Track* track, Position* pos) -> bpm_t
Returns the BPM at the given pos.
auto tempo_track_get_current_bpm(Track* self) -> bpm_t
Returns the current BPM.
void tempo_track_set_bpm(Track* self, bpm_t bpm, bpm_t start_bpm, bool temporary, bool fire_events)
Sets the BPM.
void tempo_track_set_beats_per_bar(Track* self, int beats_per_bar)
Updates beat unit and anything depending on it.