diff options
author | nick_m <mainsbridge@gmail.com> | 2016-11-23 01:45:43 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-11-23 01:45:43 +1100 |
commit | 3a362563a48828dddcf8715dd9ae582143fb7494 (patch) | |
tree | d7592ddb46cb34d26dcd58ba028af04b77de080a /libs/ardour/ardour | |
parent | 11090b2e01ab0b4cc933566035731b3a9824aba9 (diff) |
constify some TempoMap functions.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/tempo.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/ardour/tempo.h b/libs/ardour/ardour/tempo.h index ed3268145d..68ce3a0565 100644 --- a/libs/ardour/ardour/tempo.h +++ b/libs/ardour/ardour/tempo.h @@ -460,12 +460,12 @@ class LIBARDOUR_API TempoMap : public PBD::StatefulDestructible framecnt_t frames_between_quarter_notes (const double start, const double end) const; double quarter_notes_between_frames (const framecnt_t start, const framecnt_t end) const; - double quarter_note_at_beat (const double beat); - double beat_at_quarter_note (const double beat); + double quarter_note_at_beat (const double beat) const; + double beat_at_quarter_note (const double beat) const; /* obtain a musical subdivision via a frame position and magic note divisor.*/ - double exact_qn_at_frame (const framepos_t& frame, const int32_t sub_num); - double exact_beat_at_frame (const framepos_t& frame, const int32_t sub_num); + double exact_qn_at_frame (const framepos_t& frame, const int32_t sub_num) const; + double exact_beat_at_frame (const framepos_t& frame, const int32_t sub_num) const; Tempo tempo_at_frame (const framepos_t& frame) const; framepos_t frame_at_tempo (const Tempo& tempo) const; @@ -532,8 +532,8 @@ private: bool solve_map_minute (Metrics& metrics, MeterSection* section, const double& minute); bool solve_map_bbt (Metrics& metrics, MeterSection* section, const Timecode::BBT_Time& bbt); - double exact_beat_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t sub_num); - double exact_qn_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t sub_num); + double exact_beat_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t sub_num) const; + double exact_qn_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t sub_num) const; double minute_at_frame (const framepos_t frame) const; framepos_t frame_at_minute (const double minute) const; |