From 034f604481ad0fb022f2b00a591e6fabf7cc4baf Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 27 Apr 2023 05:47:20 -0400 Subject: [PATCH] Remove deprecated call to ParamQuantity::getSmoothValue(). --- src/Process.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Process.cpp b/src/Process.cpp index 23d849c..05bf5e0 100644 --- a/src/Process.cpp +++ b/src/Process.cpp @@ -63,7 +63,9 @@ struct Process : Module { struct SlewQuantity : ParamQuantity { float getDisplayValue() override { - return (getSmoothValue() <= getMinValue()) ? 0.f : ParamQuantity::getDisplayValue(); + if (getValue() <= getMinValue()) + return 0.f; + return ParamQuantity::getDisplayValue(); } }; configParam(SLEW_PARAM, std::log2(1e-3f), std::log2(10.f), std::log2(1e-3f), "Slew", " ms/V", 2, 1000);