mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Make master fader natural by applying it as final post-limiter stage
This commit is contained in:
parent
38beb8d53a
commit
b8b0624a80
1 changed files with 7 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ void ChromaFlockProcessor::updateVoiceParameters() {
|
||||||
getParam("fEnvRelease"),
|
getParam("fEnvRelease"),
|
||||||
getParam("pan"),
|
getParam("pan"),
|
||||||
getParam("drive"),
|
getParam("drive"),
|
||||||
getParam("masterLevel"),
|
1.0f,
|
||||||
l1Rate,
|
l1Rate,
|
||||||
getParam("lfo1Depth"),
|
getParam("lfo1Depth"),
|
||||||
static_cast<int>(getParam("lfo1Shape")),
|
static_cast<int>(getParam("lfo1Shape")),
|
||||||
|
|
@ -469,6 +469,12 @@ void ChromaFlockProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce::
|
||||||
// Reverb (block-based)
|
// Reverb (block-based)
|
||||||
reverbFX.process(leftData, rightData, numSamples);
|
reverbFX.process(leftData, rightData, numSamples);
|
||||||
|
|
||||||
|
// Master volume — final stage, after limiter/reverb.
|
||||||
|
for (int i = 0; i < numSamples; ++i) {
|
||||||
|
leftData[i] *= masterGain;
|
||||||
|
rightData[i] *= masterGain;
|
||||||
|
}
|
||||||
|
|
||||||
// Metering
|
// Metering
|
||||||
float sumSquares = 0.0f;
|
float sumSquares = 0.0f;
|
||||||
float peak = 0.0f;
|
float peak = 0.0f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue