Add per-band frequency control and static EQ curve overlay

This commit is contained in:
Gelyk 2026-08-29 15:42:21 +02:00
commit 8e9eb733cb
5 changed files with 172 additions and 11 deletions

View file

@ -56,11 +56,14 @@ private:
{
std::unique_ptr<juce::Slider> gain;
std::unique_ptr<juce::Slider> q;
std::unique_ptr<juce::Slider> freq;
std::unique_ptr<juce::Label> freqLabel;
std::unique_ptr<juce::Label> gainCaption;
std::unique_ptr<juce::Label> gainValue;
std::unique_ptr<juce::Label> qCaption;
std::unique_ptr<juce::Label> qValue;
std::unique_ptr<juce::Label> freqCaption;
std::unique_ptr<juce::Label> freqValue;
};
BandWidget bands[numBands];
@ -75,10 +78,12 @@ private:
std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> gainAttachments[numBands];
std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> qAttachments[numBands];
std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> freqAttachments[numBands];
std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> masterAttachment;
juce::Array<float> spectrum;
juce::Array<float> freqBins;
juce::Array<float> eqCurve;
std::atomic<float> scaling { 1.0f }; // for resized()
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(GelykEQAudioProcessorEditor)