From b7e724f9fa11a84ae1ef4fbd27bb3b9dc3dec848 Mon Sep 17 00:00:00 2001 From: m-m-adams Date: Thu, 9 Nov 2023 16:13:47 -0500 Subject: [PATCH] correct led calculation --- src/deluge/dsp/master_compressor/master_compressor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deluge/dsp/master_compressor/master_compressor.cpp b/src/deluge/dsp/master_compressor/master_compressor.cpp index 697cc9e9f6..fe0fbb12e5 100644 --- a/src/deluge/dsp/master_compressor/master_compressor.cpp +++ b/src/deluge/dsp/master_compressor/master_compressor.cpp @@ -94,8 +94,8 @@ void MasterCompressor::render(StereoSample* buffer, uint16_t numSamples, q31_t v } while (++thisSample != bufferEnd); //for LEDs - //9 converts to dB, quadrupled for display range since a 30db reduction is basically killing the signal - gainReduction = std::clamp(-(reduction) * 9 * 4, 0, 127); + //4 converts to dB, then quadrupled for display range since a 30db reduction is basically killing the signal + gainReduction = std::clamp(-(reduction) * 4 * 4, 0, 127); //calc compression for next round (feedback compressor) rms = calc_rms(buffer, numSamples); }