commit 63f02252d21d004fcab8707416a27eac9881e494
parent 46c87711ddfd78567af2de1cd6e9f40eae7d11f9
Author: Adam M <aemalone@gmail.com>
Date: Mon, 3 Dec 2018 21:53:42 -0600
Only randomize knobs on default randomize
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/ComputerscareILoveCookies.cpp b/src/ComputerscareILoveCookies.cpp
@@ -214,16 +214,15 @@ ComputerscareILoveCookies() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LI
}
void onRandomize() override {
- srand (time(NULL));
- randomizeAllFields();
}
void randomizeShuffle() {
}
- void randomizeAllFields() {
+ void randomizeTextFields() {
std::string mainlookup = knobandinputlookup;
std::string string = "";
std::string randchar = "";
+ srand (time(NULL));
float ru;
int length = 0;
@@ -325,11 +324,9 @@ void onCreate () override
std::string rhs = std::to_string(this->newABS[index].numTokens);
std::string thisVal = this->newABS[index].getWorkingStepDisplay();
-
padTo(lhs, 3,' ');
padTo(rhs, 3,' ');
-
std::string val = lhs + "/" + rhs + "\n" + thisVal.substr(0,4);
return val;
}