Browse Source

SHASR: Don't randomize state of Randomize button.

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

+ 5
- 0
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)->description = "Normalize \"Sample 1 input\" to a random 0-10 V signal";
configButton(PUSH_PARAM, "Push");
configButton(CLEAR_PARAM, "Clear");
for (int i = 0; i < 8; i++) {
@@ -41,6 +42,10 @@ 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