commit 72d36b7bea3dc432ab83b3dca137cf9f6e7cfc23
parent 9f38e1c05ef99d1794c09fb8ec83ececb547e5a8
Author: Adam M <aemalone@gmail.com>
Date: Mon, 18 Oct 2021 13:15:04 -0500
use paramQuantity randomizeEnabled to configure randomization
Diffstat:
4 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/ComputerscareBolyPuttons.cpp b/src/ComputerscareBolyPuttons.cpp
@@ -46,6 +46,8 @@ struct ComputerscareBolyPuttons : ComputerscarePolyModule {
}
configParam<AutoParamQuantity>(POLY_CHANNELS, 0.f, 16.f, 16.f, "Poly Channels");
+ getParamQuantity(POLY_CHANNELS)->randomizeEnabled = false;
+
outputRanges[0][0] = 0.f;
outputRanges[0][1] = 10.f;
outputRanges[1][0] = -5.f;
diff --git a/src/ComputerscareHorseADoodleDoo.cpp b/src/ComputerscareHorseADoodleDoo.cpp
@@ -307,6 +307,13 @@ struct ComputerscareHorseADoodleDoo : ComputerscareMenuParamModule {
configMenuParam(CV_OFFSET, -10.f, 10.f, 0.f, "CV Offset", 2);
configMenuParam(CV_PHASE, -3.14159f, 3.14159f, 0.f, "CV Phase", 2);
+ getParamQuantity(POLY_KNOB)->randomizeEnabled = false;
+
+ getParamQuantity(MODE_KNOB)->randomizeEnabled = false;
+
+ getParamQuantity(PATTERN_SPREAD)->randomizeEnabled = false;
+ getParamQuantity(STEPS_SPREAD)->randomizeEnabled = false;
+ getParamQuantity(DENSITY_SPREAD)->randomizeEnabled = false;
for (int i = 0; i < 16; i++) {
seq[i] = HorseSequencer(0.f, 8, 0.f, i, 0.f);
diff --git a/src/ComputerscareRolyPouter.cpp b/src/ComputerscareRolyPouter.cpp
@@ -42,6 +42,9 @@ struct ComputerscareRolyPouter : ComputerscarePolyModule {
configParam<AutoParamQuantity>(POLY_CHANNELS, 0.f, 16.f, 16.f, "Poly Channels");
configParam(RANDOMIZE_ONE_TO_ONE, 0.f, 1.f, 0.f);
+ getParamQuantity(POLY_CHANNELS)->randomizeEnabled = false;
+ getParamQuantity(RANDOMIZE_ONE_TO_ONE)->randomizeEnabled = false;
+
}
void setAll(int setVal) {
for (int i = 0; i < 16; i++) {
diff --git a/src/ComputerscareSolyPequencer.cpp b/src/ComputerscareSolyPequencer.cpp
@@ -50,6 +50,8 @@ struct ComputerscareSolyPequencer : ComputerscarePolyModule {
configParam(MANUAL_CLOCK_BUTTON, 0.f, 1.f, 0.f);
configParam(MANUAL_RESET_BUTTON, 0.f, 1.f, 0.f);
configParam<AutoParamQuantity>(POLY_CHANNELS, 0.f, 16.f, 16.f, "Poly Channels");
+
+ getParamQuantity(POLY_CHANNELS)->randomizeEnabled = false;
}
void resetAll() {
for (int i = 0; i < 16; i++) {