projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5d8a3ea
)
Constrain VCA slave value to controllable range
author
Robin Gareus
<robin@gareus.org>
Thu, 23 Feb 2017 17:33:10 +0000
(18:33 +0100)
committer
Robin Gareus
<robin@gareus.org>
Thu, 23 Feb 2017 17:33:10 +0000
(18:33 +0100)
This prevents overshoot e.g. when writing automation (and related oddities)
libs/ardour/slavable_automation_control.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/slavable_automation_control.cc
b/libs/ardour/slavable_automation_control.cc
index dbcce27f22dca61537099c366e592a1111a53a45..a1b9d8064d769b830c1a2876e73710ef45fcbf8c 100644
(file)
--- 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));
}
}
}