mirror of
https://codeberg.org/armin/gelyk.git
synced 2026-10-11 17:01:53 +02:00
Expand to 7 bands; add labeled rotary Q knobs and gain dB readouts
This commit is contained in:
parent
580fcf7fec
commit
10feb7a7fe
5 changed files with 126 additions and 49 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue