13
0

Constrain VCA slave value to controllable range

This prevents overshoot e.g. when writing automation (and related oddities)
This commit is contained in:
Robin Gareus 2017-02-23 18:33:10 +01:00
parent 5d8a3ea2f0
commit e8cebac6a3

View File

@ -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));
}
}
}