add copyright comments
[ardour.git] / libs / ardour / ardour / beats_frames_converter.h
index 46d6f035012969667d9855e30e23e4e04ab8b4d8..e331b8411d825285c9400f157afbb7cfe39e0e0b 100644 (file)
@@ -1,6 +1,6 @@
 /*
     Copyright (C) 2009 Paul Davis
-    Author: Dave Robillard
+    Author: David Robillard
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -29,13 +29,13 @@ namespace ARDOUR {
 
 class TempoMap;
 
-/** Converter between beats and frames.  Takes durations in beats or frames
- *  and converts them using the tempo at the \a origin supplied to the constructor.
- *  Note that this does not covert positions, only durations.
+/** Converter between beats and frames.  Takes distances in beats or frames
+ *  from some origin (supplied to the constructor in frames), and converts
+ *  them to the opposite unit, taking tempo changes into account.
  */
 class BeatsFramesConverter : public Evoral::TimeConverter<double,framepos_t> {
 public:
-       BeatsFramesConverter (const TempoMap& tempo_map, framepos_t origin)
+       BeatsFramesConverter (TempoMap& tempo_map, framepos_t origin)
                : Evoral::TimeConverter<double, framepos_t> (origin)
                , _tempo_map(tempo_map)
        {}
@@ -44,7 +44,7 @@ public:
        double     from (framepos_t frames) const;
 
 private:
-       const TempoMap& _tempo_map;
+       TempoMap& _tempo_map;
 };
 
 } /* namespace ARDOUR */