Constrain VCA slave value to controllable range
This prevents overshoot e.g. when writing automation (and related oddities)
This commit is contained in:
parent
5d8a3ea2f0
commit
e8cebac6a3
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user