From 898d2030dd705569a9432fc64f1544b07fddb74c Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 12 Sep 2023 18:32:09 -0400 Subject: [PATCH] Push: Make PUSH input invert push state when hold is enabled. --- src/Push.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Push.cpp b/src/Push.cpp index 29a75b7..f37e2bf 100644 --- a/src/Push.cpp +++ b/src/Push.cpp @@ -56,13 +56,13 @@ struct Push : Module { // Push button bool push = params[PUSH_PARAM].getValue() > 0.f; - push ^= hold; // Push input pushSchmitt.process(inputs[PUSH_INPUT].getVoltage(), 0.1f, 1.f); // Gate and trigger outputs bool gate = push || pushSchmitt.isHigh(); + gate ^= hold; if (pushBoolean.process(gate)) { trigPulse.trigger(1e-3f); }