Browse Source

Fix clock frequency, forgot 2Hz base frequency.

tags/v2.0.1
Andrew Belt 3 years ago
parent
commit
f07bfe474a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Random.cpp

+ 1
- 1
src/Random.cpp View File

@@ -148,7 +148,7 @@ struct Random : Module {
// Advance clock phase by rate
float rate = params[RATE_PARAM].getValue();
rate += inputs[RATE_PARAM].getVoltage() * params[RATE_CV_PARAM].getValue();
clockFreq = std::pow(2.f, rate);
clockFreq = 2.f * std::pow(2.f, rate);
deltaPhase = std::fmin(clockFreq * args.sampleTime, 0.5f);
clockPhase += deltaPhase;
// Trigger


Loading…
Cancel
Save