From e8cebac6a36a45a59cd70f3a0c68a2311366f784 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 23 Feb 2017 18:33:10 +0100 Subject: Constrain VCA slave value to controllable range This prevents overshoot e.g. when writing automation (and related oddities) --- libs/ardour/slavable_automation_control.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'libs') diff --git a/libs/ardour/slavable_automation_control.cc b/libs/ardour/slavable_automation_control.cc index dbcce27f22..a1b9d8064d 100644 --- a/libs/ardour/slavable_automation_control.cc +++ b/libs/ardour/slavable_automation_control.cc @@ -108,6 +108,7 @@ SlavableAutomationControl::actually_set_value (double value, PBD::Controllable:: value = 0.0; } else { value /= masters_value; + value = std::max (lower(), std::min(upper(), value)); } } } -- cgit v1.2.3