diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-26 16:21:39 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-26 23:37:27 +0200 |
commit | 0b5db91ee91afbd61a3ab11cb99796132f1b74b9 (patch) | |
tree | 6771f6e96b0c5fe961c3117c90d52090006906f0 /libs/ardour/ardour/automation_list.h | |
parent | 8bb26628e392429c8a868af3d92cb79ee52a0fc7 (diff) |
AutomationLine time-unit conversion and paste API update
This fixes copy/paste of MIDI automation (time-unit: beat) from/to
Parameter automation (time-unit: samples).
It also fixes repeatedly pasting with tempo-ramps: pre-multiply length
before converting to samples.
Diffstat (limited to 'libs/ardour/ardour/automation_list.h')
-rw-r--r-- | libs/ardour/ardour/automation_list.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/automation_list.h b/libs/ardour/ardour/automation_list.h index ca72f5f01f..3f4d3f2f52 100644 --- a/libs/ardour/ardour/automation_list.h +++ b/libs/ardour/ardour/automation_list.h @@ -40,6 +40,7 @@ namespace ARDOUR { class AutomationList; +class DoubleBeatsFramesConverter; /** A SharedStatefulProperty for AutomationLists */ class LIBARDOUR_API AutomationListProperty : public PBD::SharedStatefulProperty<AutomationList> @@ -81,6 +82,7 @@ class LIBARDOUR_API AutomationList : public Evoral::ControlList, public PBD::Sta AutomationList& operator= (const AutomationList&); void thaw (); + bool paste (const ControlList&, double, DoubleBeatsFramesConverter const&); void set_automation_state (AutoState); AutoState automation_state() const { return _state; } |