Constrain VCA slave value to controllable range
This prevents overshoot e.g. when writing automation (and related oddities)
This commit is contained in:
@@ -108,6 +108,7 @@ SlavableAutomationControl::actually_set_value (double value, PBD::Controllable::
|
|||||||
value = 0.0;
|
value = 0.0;
|
||||||
} else {
|
} else {
|
||||||
value /= masters_value;
|
value /= masters_value;
|
||||||
|
value = std::max (lower(), std::min(upper(), value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user