From edfca6849443448794dfe40639f40e9e212556d2 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 9 Jul 2020 22:33:09 +0200 Subject: [PATCH] Auto write-activate automation in latch mode This allows to use of control-surfaces without touch-sensitivity or mouse-wheel to write automation on demand (until transport stop). --- libs/ardour/automation_control.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 687f03f4f0..67e4bd9d6d 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -128,6 +128,10 @@ AutomationControl::set_value (double val, PBD::Controllable::GroupControlDisposi return; } + if (_list && !touching () && alist()->automation_state() == Latch && _session.transport_rolling ()) { + start_touch (_session.transport_sample ()); + } + /* enforce strict double/boolean value mapping */ if (_desc.toggled) {