mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Fix rotary knob fader curve mapping functions, lower highpass frequency
in DSP
This commit is contained in:
parent
0beebaa46d
commit
8c0f55f1e7
4 changed files with 9 additions and 3 deletions
|
|
@ -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>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue