From e2adf87b1472df237d9415d9d7f1927c3235f7a5 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 4 Feb 2018 00:23:38 -0800 Subject: [PATCH] Fix near() function in ADSR --- src/ADSR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ADSR.cpp b/src/ADSR.cpp index e5cab1d..89710f9 100644 --- a/src/ADSR.cpp +++ b/src/ADSR.cpp @@ -91,8 +91,8 @@ void ADSR::step() { decaying = false; } - bool sustaining = near(env, sustain, 1e-3); - bool resting = near(env, 0.0f, 1e-3); + bool sustaining = isNear(env, sustain, 1e-3); + bool resting = isNear(env, 0.0f, 1e-3); outputs[ENVELOPE_OUTPUT].value = 10.0f * env;