From c271274606f3fec79612aa825061e8c323af76e4 Mon Sep 17 00:00:00 2001 From: Alexey Komarov Date: Mon, 6 Nov 2023 18:32:36 +0400 Subject: [PATCH] Closes #13 Math 2nd Log2 output is not working --- plugin.json | 2 +- src/Math.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.json b/plugin.json index 50309fb..4e3459e 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "slug": "fruitsofkarma", "name": "fruitsofkarma", - "version": "2.0.9", + "version": "2.0.10", "license": "MIT", "brand": "fruitsofkarma", "author": "Alexey Komarov", diff --git a/src/Math.cpp b/src/Math.cpp index 6b61e4b..43e24f3 100644 --- a/src/Math.cpp +++ b/src/Math.cpp @@ -101,7 +101,7 @@ struct Math : Module { if (k == 0) { outputs[LN1_OUTPUT + j].setVoltage(std::log(a), c); } else if (k == 1) { - outputs[LOG21_OUTPUT].setVoltage(std::log2(a), c); + outputs[LOG21_OUTPUT + j].setVoltage(std::log2(a), c); } else if (k == 2) { outputs[LOG101_OUTPUT + j].setVoltage(std::log10(a), c); }