Browse Source

SHASR: Use ParamQuantity::randomizeEnabled to disable randomization instead of overriding onRandomize().

tags/v2.6.0
Andrew Belt 1 year ago
parent
commit
5ce7104b00
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/SHASR.cpp

+ 1
- 4
src/SHASR.cpp View File

@@ -32,6 +32,7 @@ struct SHASR : Module {
SHASR() {
config(PARAMS_LEN, INPUTS_LEN, OUTPUTS_LEN, LIGHTS_LEN);
configSwitch(RND_PARAM, 0.f, 1.f, 0.f, "Randomize");
getParamQuantity(RND_PARAM)->randomizeEnabled = false;
getParamQuantity(RND_PARAM)->description = "Normalize \"Sample 1 input\" to a random 0-10 V signal";
configButton(PUSH_PARAM, "Push");
configButton(CLEAR_PARAM, "Clear");
@@ -42,10 +43,6 @@ struct SHASR : Module {
}
}

void onRandomize(const RandomizeEvent& e) override {
// Don't call super method
}

void onReset(const ResetEvent& e) override {
for (int i = 0; i < 8; i++) {
values[i] = 0.f;


Loading…
Cancel
Save