BogaudioModules

BogaudioModules for VCV Rack
Log | Files | Refs | README | LICENSE

commit 8d0ca816af648300b073a66eaef87295e1130446
parent 1c668c8c12232ce24707ea38a04e5fc5b497a5e5
Author: Matt Demanett <matt@demanett.net>
Date:   Wed, 13 Nov 2019 23:29:29 -0500

Remove some unneeded checks.

Diffstat:
Msrc/Lmtr.cpp | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/Lmtr.cpp b/src/Lmtr.cpp @@ -34,10 +34,6 @@ void Lmtr::modulate() { void Lmtr::modulateChannel(int c) { Engine& e = *_engines[c]; - if (!_engines[c]) { - return; - } - e.thresholdDb = params[THRESHOLD_PARAM].getValue(); if (inputs[THRESHOLD_INPUT].isConnected()) { e.thresholdDb *= clamp(inputs[THRESHOLD_INPUT].getPolyVoltage(c) / 10.0f, 0.0f, 1.0f); @@ -59,10 +55,6 @@ void Lmtr::modulateChannel(int c) { void Lmtr::processChannel(const ProcessArgs& args, int c) { Engine& e = *_engines[c]; - if (!_engines[c]) { - return; - } - float leftInput = inputs[LEFT_INPUT].getPolyVoltage(c); float rightInput = inputs[RIGHT_INPUT].getPolyVoltage(c); float env = e.detector.next(leftInput + rightInput);