Remove compressor/distortion mix (force 100% wet)

This commit is contained in:
Armin 2026-07-15 23:50:31 +02:00
commit 2a1feaaea9
2 changed files with 6 additions and 7 deletions

View file

@ -10,13 +10,13 @@ public:
} }
void setParameters(float thresholdDb, float ratio, float attackMs, float releaseMs, void setParameters(float thresholdDb, float ratio, float attackMs, float releaseMs,
float makeupDb, float mix) { float makeupDb) {
threshold = std::pow(10.0f, thresholdDb / 20.0f); threshold = std::pow(10.0f, thresholdDb / 20.0f);
compRatio = ratio; compRatio = ratio;
attackCoeff = std::exp(-1.0f / (attackMs * 0.001f * static_cast<float>(sampleRate))); attackCoeff = std::exp(-1.0f / (attackMs * 0.001f * static_cast<float>(sampleRate)));
releaseCoeff = std::exp(-1.0f / (releaseMs * 0.001f * static_cast<float>(sampleRate))); releaseCoeff = std::exp(-1.0f / (releaseMs * 0.001f * static_cast<float>(sampleRate)));
makeupGain = std::pow(10.0f, makeupDb / 20.0f); makeupGain = std::pow(10.0f, makeupDb / 20.0f);
dryWet = mix; dryWet = 1.0f;
} }
float process(float input) { float process(float input) {

View file

@ -171,8 +171,6 @@ juce::AudioProcessorValueTreeState::ParameterLayout ChromaFlockProcessor::create
layout.add(std::make_unique<juce::AudioParameterFloat>( layout.add(std::make_unique<juce::AudioParameterFloat>(
juce::ParameterID{"compMakeup", 1}, "Comp Makeup", juce::ParameterID{"compMakeup", 1}, "Comp Makeup",
juce::NormalisableRange<float>(0.0f, 24.0f, 0.1f), 0.0f)); juce::NormalisableRange<float>(0.0f, 24.0f, 0.1f), 0.0f));
layout.add(std::make_unique<juce::AudioParameterFloat>(
juce::ParameterID{"compMix", 1}, "Comp Mix", zeroOne, 1.0f));
// AUTO-PAN // AUTO-PAN
layout.add(std::make_unique<juce::AudioParameterFloat>( layout.add(std::make_unique<juce::AudioParameterFloat>(
@ -396,18 +394,19 @@ void ChromaFlockProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce::
distortion.setParameters( distortion.setParameters(
static_cast<DistortionType>(static_cast<int>(getParam("distType"))), static_cast<DistortionType>(static_cast<int>(getParam("distType"))),
getParam("distAmount"), getParam("distAmount"),
getParam("distMix")); getParam("distSymmetry"),
getParam("distTone"));
compressor.setParameters( compressor.setParameters(
getParam("compThreshold"), getParam("compThreshold"),
getParam("compRatio"), getParam("compRatio"),
getParam("compAttack"), getParam("compAttack"),
getParam("compRelease"), getParam("compRelease"),
getParam("compMakeup"), getParam("compMakeup"));
getParam("compMix"));
float panRate = getParam("autoPanRate"); float panRate = getParam("autoPanRate");
float panDepth = getParam("autoPanDepth"); float panDepth = getParam("autoPanDepth");
autoPanPhaseOffset = getParam("autoPanPhase");
float delayTimeMs = getParam("delayTime"); float delayTimeMs = getParam("delayTime");
if (getParam("delaySync") > 0.5f) { if (getParam("delaySync") > 0.5f) {