Fix bool-automation anchor

Typo sneaked in from ff2f93497...cc7de475f2
This commit is contained in:
Robin Gareus 2019-11-13 16:53:46 +01:00
parent 9b3ebd82ab
commit 7d90ad4023
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -743,7 +743,7 @@ ControlList::add (double when, double value, bool with_guards, bool with_initial
if (when >= 1) {
if (_desc.toggled) {
const double opp_val = ((value < 0.5) ? 1.0 : 0.0);
const double opp_val = ((value >= 0.5) ? 1.0 : 0.0);
_events.insert (_events.end(), new ControlEvent (0, opp_val));
DEBUG_TRACE (DEBUG::ControlList, string_compose ("@%1 added toggled value %2 at zero\n", this, opp_val));