diff --git a/plugin.json b/plugin.json index 58c49c1..b84e5e5 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "slug": "Befaco", - "version": "1.1.0", + "version": "1.0.1", "license": "GPL-3.0-or-later", "name": "Befaco", "author": "VCV", diff --git a/src/Kickall.cpp b/src/Kickall.cpp index 066ebab..6b570d7 100644 --- a/src/Kickall.cpp +++ b/src/Kickall.cpp @@ -82,8 +82,8 @@ struct Kickall : Module { pitch.decayTime = params[TIME_PARAM].getValue(); pitch.process(args.sampleTime); - // volume envelope TODO: wire in decay CV - volume.decayTime = params[DECAY_PARAM].getValue(); + // volume envelope TODO: calibrate CV/slider interaction + volume.decayTime = clamp(params[DECAY_PARAM].getValue() + inputs[DECAY_INPUT].getVoltage() * 0.1f, 0.01, 1.0); volume.process(args.sampleTime); float freq = params[TUNE_PARAM].getValue(); diff --git a/src/Percall.cpp b/src/Percall.cpp index 2091508..ccc0935 100644 --- a/src/Percall.cpp +++ b/src/Percall.cpp @@ -2,13 +2,6 @@ #include "Common.hpp" -static float expDelta(float delta, float tau) { - float lin = sgn(delta) * 10.f / tau; - float exp = M_E * delta / tau; - return crossfade(lin, exp, 0.90f); -} - - struct Percall : Module { enum ParamIds { ENUMS(VOL_PARAMS, 4), @@ -36,7 +29,7 @@ struct Percall : Module { ADEnvelope envs[4]; float gains[4] = {}; - + float strength = 1.0f; dsp::SchmittTrigger trigger[4]; dsp::ClockDivider cvDivider;