file
tempo_track.hObject to hold information for the Tempo track.
Enums
- enum BeatUnit { BEAT_UNIT_2, BEAT_UNIT_4, BEAT_UNIT_8, BEAT_UNIT_16 }
- Beat unit.
Typedefs
Functions
- 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.