Browse Source

Add drive input CV to VCF

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

+ 3
- 2
src/VCF.cpp View File

@@ -115,8 +115,9 @@ VCF::VCF() {

void VCF::step() {
float input = getf(inputs[IN_INPUT]) / 5.0;
float drive = powf(100.0, params[DRIVE_PARAM]);
input *= drive;
float drive = params[DRIVE_PARAM] + getf(inputs[DRIVE_INPUT]) / 10.0;
float gain = powf(100.0, drive);
input *= gain;
// Add -60dB noise to bootstrap self-oscillation
input += 1.0e-6 * (2.0*randomf() - 1.0);



Loading…
Cancel
Save