Browse Source

Remove deprecated call to ParamQuantity::getSmoothValue().

tags/v2.5.0
Andrew Belt 7 months ago
parent
commit
034f604481
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Process.cpp

+ 3
- 1
src/Process.cpp View File

@@ -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<SlewQuantity>(SLEW_PARAM, std::log2(1e-3f), std::log2(10.f), std::log2(1e-3f), "Slew", " ms/V", 2, 1000);


Loading…
Cancel
Save