Fix rotary knob fader curve mapping functions, lower highpass frequency

in DSP
This commit is contained in:
Armin 2026-07-17 15:26:06 +02:00
commit 8c0f55f1e7
4 changed files with 9 additions and 3 deletions

View file

@ -94,7 +94,12 @@ juce::AudioProcessorValueTreeState::ParameterLayout ChromaFlockProcessor::create
juce::StringArray{"LP 12dB", "LP 24dB", "Band Pass", "High Pass", "Notch"}, 0));
layout.add(std::make_unique<juce::AudioParameterFloat>(
juce::ParameterID{"filterCutoff", 1}, "Filter Cutoff",
juce::NormalisableRange<float>(50.0f, 20000.0f, 0.1f, 0.25f), 8000.0f));
juce::NormalisableRange<float>(
20.0f, 20000.0f,
[](float start, float end, float n) { return start * std::pow(end / start, n); },
[](float start, float end, float v) { return std::log(v / start) / std::log(end / start); },
[](float, float, float v) { return v; }),
8000.0f));
layout.add(std::make_unique<juce::AudioParameterFloat>(
juce::ParameterID{"filterRes", 1}, "Filter Resonance", zeroOne, 0.2f));
layout.add(std::make_unique<juce::AudioParameterFloat>(