Browse Source

Use randomUniform()

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
feff87e44b
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/Mutes.cpp
  2. +1
    -1
      src/SEQ3.cpp

+ 1
- 1
src/Mutes.cpp View File

@@ -38,7 +38,7 @@ struct Mutes : Module {
} }
void onRandomize() override { void onRandomize() override {
for (int i = 0; i < NUM_CHANNELS; i++) { for (int i = 0; i < NUM_CHANNELS; i++) {
state[i] = (randomf() < 0.5f);
state[i] = (randomUniform() < 0.5f);
} }
} }




+ 1
- 1
src/SEQ3.cpp View File

@@ -114,7 +114,7 @@ struct SEQ3 : Module {


void onRandomize() override { void onRandomize() override {
for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
gateState[i] = (randomf() > 0.5f);
gateState[i] = (randomUniform() > 0.5f);
} }
} }
}; };


Loading…
Cancel
Save