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).
This commit is contained in:
Robin Gareus 2020-07-09 22:33:09 +02:00
parent ce8846d13f
commit edfca68494
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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) {