diff options
author | nick_m <mainsbridge@gmail.com> | 2016-05-27 03:55:11 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-27 23:38:18 +1000 |
commit | e2330739ed40f28c0958db1660404d38a31f86ca (patch) | |
tree | a46b40cb03f66f59500168043c6cca0071f5dc21 /libs/ardour/ardour/tempo.h | |
parent | 34c9ac9dd7b1187d9efa2c6894fccba34fe298cd (diff) |
Tempo ramps - add TempoMap::frame_at_tempo()
Diffstat (limited to 'libs/ardour/ardour/tempo.h')
-rw-r--r-- | libs/ardour/ardour/tempo.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/ardour/tempo.h b/libs/ardour/ardour/tempo.h index 8227a968a0..08d8670544 100644 --- a/libs/ardour/ardour/tempo.h +++ b/libs/ardour/ardour/tempo.h @@ -413,10 +413,12 @@ class LIBARDOUR_API TempoMap : public PBD::StatefulDestructible framecnt_t frame_at_pulse (const double& pulse) const; const Tempo tempo_at_frame (const framepos_t& frame) const; + framepos_t frame_at_tempo (const Tempo& tempo) const; + const Meter& meter_at_frame (framepos_t) const; - const Timecode::BBT_Time bbt_at_frame (framepos_t when); - const framepos_t frame_at_bbt (const Timecode::BBT_Time&); + Timecode::BBT_Time bbt_at_frame (framepos_t when); + framepos_t frame_at_bbt (const Timecode::BBT_Time&); double beat_at_bbt (const Timecode::BBT_Time& bbt); Timecode::BBT_Time bbt_at_beat (const double& beats); @@ -473,6 +475,7 @@ private: framepos_t frame_at_bbt_locked (const Metrics& metrics, const Timecode::BBT_Time&) const; const Tempo tempo_at_frame_locked (const Metrics& metrics, const framepos_t& frame) const; + framepos_t frame_at_tempo_locked (const Metrics& metrics, const Tempo& tempo) const; const TempoSection& tempo_section_at_locked (const Metrics& metrics, framepos_t frame) const; const TempoSection& tempo_section_at_beat_locked (const Metrics& metrics, const double& beat) const; |