mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue