Browse Source

Lower VCF cutoff range

tags/v0.4.0
Andrew Belt 6 years ago
parent
commit
71e442e12a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/VCF.cpp

+ 3
- 1
src/VCF.cpp View File

@@ -128,7 +128,9 @@ void VCF::step() {
// Set cutoff frequency
float cutoffExp = params[FREQ_PARAM] + params[FREQ_CV_PARAM] * getf(inputs[FREQ_INPUT]) / 5.0;
cutoffExp = clampf(cutoffExp, 0.0, 1.0);
filter.cutoff = 200.0 * powf(8400.0/200.0, cutoffExp);
const float minCutoff = 15.0;
const float maxCutoff = 8400.0;
filter.cutoff = minCutoff * powf(maxCutoff / minCutoff, cutoffExp);

// Push a sample to the state filter
filter.process(input, 1.0/gSampleRate);


Loading…
Cancel
Save