From 186beec156f5b3e76a978ce062e44829cdfe41a8 Mon Sep 17 00:00:00 2001 From: Fawn Date: Wed, 25 Jun 2025 14:17:53 -0600 Subject: [PATCH] Fix effect gate logic (#7971) Reverts a mistake from #7696 --- src/core/Effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Effect.cpp b/src/core/Effect.cpp index 83df28b24..37133d4d5 100644 --- a/src/core/Effect.cpp +++ b/src/core/Effect.cpp @@ -190,7 +190,7 @@ void Effect::checkGate(double outSum) // Check whether we need to continue processing input. Restart the // counter if the threshold has been exceeded. - if (approximatelyEqual(outSum, gate())) + if (outSum - gate() <= F_EPSILON) { incrementBufferCount(); if( bufferCount() > timeout() )