diff --git a/Source/DSP/Compressor.h b/Source/DSP/Compressor.h index d1b9fa2..080b21c 100644 --- a/Source/DSP/Compressor.h +++ b/Source/DSP/Compressor.h @@ -10,13 +10,13 @@ public: } void setParameters(float thresholdDb, float ratio, float attackMs, float releaseMs, - float makeupDb, float mix) { + float makeupDb) { threshold = std::pow(10.0f, thresholdDb / 20.0f); compRatio = ratio; attackCoeff = std::exp(-1.0f / (attackMs * 0.001f * static_cast(sampleRate))); releaseCoeff = std::exp(-1.0f / (releaseMs * 0.001f * static_cast(sampleRate))); makeupGain = std::pow(10.0f, makeupDb / 20.0f); - dryWet = mix; + dryWet = 1.0f; } float process(float input) { diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index ac028ef..97684ff 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -171,8 +171,6 @@ juce::AudioProcessorValueTreeState::ParameterLayout ChromaFlockProcessor::create layout.add(std::make_unique( juce::ParameterID{"compMakeup", 1}, "Comp Makeup", juce::NormalisableRange(0.0f, 24.0f, 0.1f), 0.0f)); - layout.add(std::make_unique( - juce::ParameterID{"compMix", 1}, "Comp Mix", zeroOne, 1.0f)); // AUTO-PAN layout.add(std::make_unique( @@ -396,18 +394,19 @@ void ChromaFlockProcessor::processBlock(juce::AudioBuffer& buffer, juce:: distortion.setParameters( static_cast(static_cast(getParam("distType"))), getParam("distAmount"), - getParam("distMix")); + getParam("distSymmetry"), + getParam("distTone")); compressor.setParameters( getParam("compThreshold"), getParam("compRatio"), getParam("compAttack"), getParam("compRelease"), - getParam("compMakeup"), - getParam("compMix")); + getParam("compMakeup")); float panRate = getParam("autoPanRate"); float panDepth = getParam("autoPanDepth"); + autoPanPhaseOffset = getParam("autoPanPhase"); float delayTimeMs = getParam("delayTime"); if (getParam("delaySync") > 0.5f) {