From 0115b024fbcd134cd3481a09adcc9201c0ea5806 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 22 Sep 2017 17:17:45 -0400 Subject: [PATCH] Add drive input CV to VCF --- src/VCF.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/VCF.cpp b/src/VCF.cpp index 502399d..323733e 100644 --- a/src/VCF.cpp +++ b/src/VCF.cpp @@ -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);