From f2e1951d91a5030330510eedebf40c0b1472f2df Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 30 Jun 2022 01:09:34 -0400 Subject: [PATCH] Align VCV Audio-2 VU meter light thresholds with meter labels. --- src/core/Audio.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/Audio.cpp b/src/core/Audio.cpp index 1cccae76..6a051d2e 100644 --- a/src/core/Audio.cpp +++ b/src/core/Audio.cpp @@ -338,12 +338,12 @@ struct Audio : Module { // Audio-2: VU meter if (NUM_AUDIO_INPUTS == 2) { for (int i = 0; i < NUM_AUDIO_INPUTS; i++) { - lights[VU_LIGHTS + i * 6 + 0].setBrightness(vuMeter[i].getBrightness(0, 0)); - lights[VU_LIGHTS + i * 6 + 1].setBrightness(vuMeter[i].getBrightness(-3, 0)); - lights[VU_LIGHTS + i * 6 + 2].setBrightness(vuMeter[i].getBrightness(-6, -3)); - lights[VU_LIGHTS + i * 6 + 3].setBrightness(vuMeter[i].getBrightness(-12, -6)); - lights[VU_LIGHTS + i * 6 + 4].setBrightness(vuMeter[i].getBrightness(-24, -12)); - lights[VU_LIGHTS + i * 6 + 5].setBrightness(vuMeter[i].getBrightness(-36, -24)); + lights[VU_LIGHTS + i * 6 + 0].setBrightness(vuMeter[i].getBrightness(-3, 0)); + lights[VU_LIGHTS + i * 6 + 1].setBrightness(vuMeter[i].getBrightness(-6, -3)); + lights[VU_LIGHTS + i * 6 + 2].setBrightness(vuMeter[i].getBrightness(-12, -6)); + lights[VU_LIGHTS + i * 6 + 3].setBrightness(vuMeter[i].getBrightness(-24, -12)); + lights[VU_LIGHTS + i * 6 + 4].setBrightness(vuMeter[i].getBrightness(-36, -24)); + lights[VU_LIGHTS + i * 6 + 5].setBrightness(vuMeter[i].getBrightness(-48, -36)); } } // Audio-8 and Audio-16: pair state lights