major internal plugin & processor API change:
[ardour.git] / libs / ardour / ardour / beats_frames_converter.h
index ada09b1179e933ebecc8c0a590ed983092282913..4b7169bfe7edc7b5cbe36300d49696e80e0d079b 100644 (file)
@@ -19,8 +19,8 @@
     $Id: midiregion.h 733 2006-08-01 17:19:38Z drobilla $
 */
 
+#include "evoral/Beats.hpp"
 #include "evoral/TimeConverter.hpp"
-#include "evoral/types.hpp"
 
 #include "ardour/libardour_visibility.h"
 #include "ardour/types.h"
@@ -37,15 +37,15 @@ class TempoMap;
  *  them to the opposite unit, taking tempo changes into account.
  */
 class LIBARDOUR_API BeatsFramesConverter
-       : public Evoral::TimeConverter<Evoral::MusicalTime,framepos_t> {
+       : public Evoral::TimeConverter<Evoral::Beats,framepos_t> {
 public:
        BeatsFramesConverter (TempoMap& tempo_map, framepos_t origin)
-               : Evoral::TimeConverter<Evoral::MusicalTime, framepos_t> (origin)
+               : Evoral::TimeConverter<Evoral::Beats, framepos_t> (origin)
                , _tempo_map(tempo_map)
        {}
 
-       framepos_t          to (Evoral::MusicalTime beats) const;
-       Evoral::MusicalTime from (framepos_t frames) const;
+       framepos_t    to (Evoral::Beats beats) const;
+       Evoral::Beats from (framepos_t frames) const;
 
 private:
        TempoMap& _tempo_map;