summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/beats_frames_converter.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-05 13:36:38 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-05 13:36:38 +0000
commit5e3ca4db5cc356385e520643cfd279f393db4b51 (patch)
tree2ea31a74d34e37e33bc5b126a5e7f1b58753b4f0 /libs/ardour/ardour/beats_frames_converter.h
parente7a2b99f3d4f7afe73a30ac85e770e228785c1be (diff)
Support cut / copy / paste of MIDI automation.
git-svn-id: svn://localhost/ardour2/branches/3.0@7545 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/beats_frames_converter.h')
-rw-r--r--libs/ardour/ardour/beats_frames_converter.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/libs/ardour/ardour/beats_frames_converter.h b/libs/ardour/ardour/beats_frames_converter.h
index 9db4448ebb..b1e44adbef 100644
--- a/libs/ardour/ardour/beats_frames_converter.h
+++ b/libs/ardour/ardour/beats_frames_converter.h
@@ -32,19 +32,15 @@ class TempoMap;
class BeatsFramesConverter : public Evoral::TimeConverter<double,sframes_t> {
public:
BeatsFramesConverter(const TempoMap& tempo_map, sframes_t origin)
- : _tempo_map(tempo_map)
- , _origin(origin)
+ : Evoral::TimeConverter<double, sframes_t> (origin)
+ , _tempo_map(tempo_map)
{}
sframes_t to(double beats) const;
double from(sframes_t frames) const;
- sframes_t origin() const { return _origin; }
- void set_origin(sframes_t origin) { _origin = origin; }
-
private:
const TempoMap& _tempo_map;
- sframes_t _origin;
};
} /* namespace ARDOUR */