diff options
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r-- | libs/ardour/automation_control.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index a4e0a7bbc0..2989d82818 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -52,8 +52,16 @@ AutomationControl::set_value(double value) { bool to_list = _list && _session.transport_stopped() && ((AutomationList*)_list.get())->automation_write(); + + if (to_list && parameter().toggled()) { - Control::set_double(value, to_list, _session.transport_frame()); + //store the previous value just before this so any + // interpolation works right + + _list->add (get_double(), _session.transport_frame()-1); + } + + Control::set_double (value, to_list, _session.transport_frame()); Changed(); /* EMIT SIGNAL */ } |