summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-23 18:33:10 +0100
committerRobin Gareus <robin@gareus.org>2017-02-23 18:33:10 +0100
commite8cebac6a36a45a59cd70f3a0c68a2311366f784 (patch)
tree03f28a1f057b7c0d8f6af385f857497feb33e657 /libs
parent5d8a3ea2f04ac284c08e3a3bd3ec865f1378073d (diff)
Constrain VCA slave value to controllable range
This prevents overshoot e.g. when writing automation (and related oddities)
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/slavable_automation_control.cc1
1 files changed, 1 insertions, 0 deletions
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));
}
}
}