From 5e8ca0d7009a44c8ac11e570a24e978b5f1e0f66 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 24 Jul 2019 15:20:13 -0400 Subject: [PATCH] Fix levels of M/S decoder. --- plugin.json | 2 +- src/MidSide.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.json b/plugin.json index fbbe8ba..e5112dd 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "slug": "Fundamental", - "version": "1.1.0", + "version": "1.1.1", "license": "BSD-3-Clause", "name": "Fundamental", "brand": "VCV", diff --git a/src/MidSide.cpp b/src/MidSide.cpp index ecc604b..d252314 100644 --- a/src/MidSide.cpp +++ b/src/MidSide.cpp @@ -67,8 +67,8 @@ struct MidSide : Module { width = simd::fmax(width, 0.f); float_4 mid = inputs[DEC_MID_INPUT].getVoltageSimd(c); float_4 sides = inputs[DEC_SIDES_INPUT].getVoltageSimd(c); - float_4 left = (mid + sides * width) / 2; - float_4 right = (mid - sides * width) / 2; + float_4 left = mid + sides * width; + float_4 right = mid - sides * width; outputs[DEC_LEFT_OUTPUT].setVoltageSimd(left, c); outputs[DEC_RIGHT_OUTPUT].setVoltageSimd(right, c); }