Skip to content

Commit

Permalink
switch81: disallow mode param from onRandomize()
Browse files Browse the repository at this point in the history
  • Loading branch information
alefnull committed Aug 23, 2022
1 parent 3c84048 commit fde47e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/switch81.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ struct Switch81 : Module, SwitchBase {
config(PARAMS_LEN, INPUTS_LEN, OUTPUTS_LEN, LIGHTS_LEN);
configSwitch(MODE_PARAM, 0.f, 3.f, 0.f, "mode", { "select chance", "skip chance", "repeat weight", "fixed pattern" });
getParamQuantity(MODE_PARAM)->snapEnabled = true;
getParamQuantity(MODE_PARAM)->randomizeEnabled = false;
configParam(RANDOMIZE_STEPS_PARAM, 0.f, 1.f, 0.f, "randomize steps");
configParam(RANDOMIZE_MODE_PARAM, 0.f, 1.f, 0.f, "randomize mode");
configParam(STEP_1_PARAM, 0.f, 1.f, 1.f, "step 1");
Expand Down

0 comments on commit fde47e0

Please sign in to comment.