Skip to content

Commit

Permalink
correct led calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-m-adams committed Nov 9, 2023
1 parent 8179d41 commit b7e724f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deluge/dsp/master_compressor/master_compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int32_t>(-(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<int32_t>(-(reduction) * 4 * 4, 0, 127);
//calc compression for next round (feedback compressor)
rms = calc_rms(buffer, numSamples);
}
Expand Down

0 comments on commit b7e724f

Please sign in to comment.