Browse Source

Fix levels of M/S decoder.

tags/v1.1.1
Andrew Belt 4 years ago
parent
commit
5e8ca0d700
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      plugin.json
  2. +2
    -2
      src/MidSide.cpp

+ 1
- 1
plugin.json View File

@@ -1,6 +1,6 @@
{
"slug": "Fundamental",
"version": "1.1.0",
"version": "1.1.1",
"license": "BSD-3-Clause",
"name": "Fundamental",
"brand": "VCV",


+ 2
- 2
src/MidSide.cpp View File

@@ -67,8 +67,8 @@ struct MidSide : Module {
width = simd::fmax(width, 0.f);
float_4 mid = inputs[DEC_MID_INPUT].getVoltageSimd<float_4>(c);
float_4 sides = inputs[DEC_SIDES_INPUT].getVoltageSimd<float_4>(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);
}


Loading…
Cancel
Save