Browse Source

Align VCV Audio-2 VU meter light thresholds with meter labels.

tags/v2.1.2
Andrew Belt 2 years ago
parent
commit
f2e1951d91
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/core/Audio.cpp

+ 6
- 6
src/core/Audio.cpp View File

@@ -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


Loading…
Cancel
Save