Keep track of MIDI region's start positions in beats, to
[ardour.git] / libs / ardour / ardour / tempo.h
index 9f61d1d54d405e7f4411d694a9e33dc84aa332b0..05d65602cf841fb71d2e20a163b14862f3210820 100644 (file)
@@ -30,6 +30,7 @@
 #include "pbd/stateful.h"
 #include "pbd/statefuldestructible.h"
 
+#include "evoral/types.hpp"
 
 #include "ardour/ardour.h"
 
@@ -247,7 +248,9 @@ class TempoMap : public PBD::StatefulDestructible
        Timecode::BBT_Time bbt_subtract (const Timecode::BBT_Time&, const Timecode::BBT_Time&) const;
 
        framepos_t framepos_plus_bbt (framepos_t pos, Timecode::BBT_Time b) const;
-       double framewalk_to_beats (framepos_t pos, framecnt_t distance) const;
+       framepos_t framepos_plus_beats (framepos_t, Evoral::MusicalTime) const;
+       framepos_t framepos_minus_beats (framepos_t, Evoral::MusicalTime) const;
+       Evoral::MusicalTime framewalk_to_beats (framepos_t pos, framecnt_t distance) const;
 
        void change_existing_tempo_at (framepos_t, double bpm, double note_type);
        void change_initial_tempo (double bpm, double note_type);