Expand to 7 bands; add labeled rotary Q knobs and gain dB readouts

This commit is contained in:
Gelyk 2026-08-29 15:32:16 +02:00
commit 10feb7a7fe
5 changed files with 126 additions and 49 deletions

View file

@ -13,6 +13,9 @@ public:
void drawLinearSlider(juce::Graphics&, int x, int y, int width, int height,
float sliderPos, float minSliderPos, float maxSliderPos,
const juce::Slider::SliderStyle, juce::Slider&) override;
void drawRotarySlider(juce::Graphics&, int x, int y, int width, int height,
float sliderPosProportional, float rotaryStartAngle,
float rotaryEndAngle, juce::Slider&) override;
void drawComboBox(juce::Graphics&, int width, int height, bool isButtonDown,
int buttonX, int buttonY, int buttonW, int buttonH,
juce::ComboBox&) override;
@ -48,13 +51,16 @@ private:
NeonLookAndFeel lookAndFeel;
static constexpr int numBands = 5;
static constexpr int numBands = 7;
struct BandWidget
{
std::unique_ptr<juce::Slider> gain;
std::unique_ptr<juce::Slider> q;
std::unique_ptr<juce::Label> freqLabel;
std::unique_ptr<juce::Label> gainLabel;
std::unique_ptr<juce::Label> gainCaption;
std::unique_ptr<juce::Label> gainValue;
std::unique_ptr<juce::Label> qCaption;
std::unique_ptr<juce::Label> qValue;
};
BandWidget bands[numBands];