diff --git a/Leiwandizer/Source/PluginProcessor.cpp b/Leiwandizer/Source/PluginProcessor.cpp index b46cc70..37fc159 100644 --- a/Leiwandizer/Source/PluginProcessor.cpp +++ b/Leiwandizer/Source/PluginProcessor.cpp @@ -150,6 +150,7 @@ void LeiwandizerAudioProcessor::prepareToPlay (double sampleRate, int samplesPer phaser.setDepth(0.6f); phaser.setFeedback(0.1f); phaser.setRate(99.0f); + phaser.setMix(0.3f); chorus.prepare(spec); chorus.reset(); @@ -157,6 +158,7 @@ void LeiwandizerAudioProcessor::prepareToPlay (double sampleRate, int samplesPer chorus.setDepth(0.2f); chorus.setFeedback(-0.2f); chorus.setRate(0.05f); + chorus.setMix(0.3f); reverb.prepare(spec); reverb.reset(); @@ -166,6 +168,10 @@ void LeiwandizerAudioProcessor::prepareToPlay (double sampleRate, int samplesPer params.dryLevel = 0.7; //params.freezeMode = 0.8f; reverb.setParameters(params); + + gainOa.prepare(spec); + gainOa.reset(); + gainOa.setGainDecibels(-6.0f); } void LeiwandizerAudioProcessor::releaseResources() @@ -258,6 +264,7 @@ void LeiwandizerAudioProcessor::processBlock (juce::AudioBuffer& buffer, if (channel % 2) channelData[i] = -1.0f * channelData[i]; } } + gainOa.process(context); limiter.process(context); } diff --git a/Leiwandizer/Source/PluginProcessor.h b/Leiwandizer/Source/PluginProcessor.h index a90c209..bc25766 100644 --- a/Leiwandizer/Source/PluginProcessor.h +++ b/Leiwandizer/Source/PluginProcessor.h @@ -70,6 +70,7 @@ private: juce::dsp::Phaser phaser; juce::dsp::Chorus chorus; juce::dsp::Reverb reverb; + juce::dsp::Gain gainOa; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LeiwandizerAudioProcessor) };