Add mono toggle, wider scale dropdown, dynamic UI scaling

This commit is contained in:
Armin 2026-09-16 18:38:35 +02:00
commit d15e61b96f
6 changed files with 90 additions and 30 deletions

View file

@ -24,6 +24,7 @@ private:
ArcKnob dotSizeKnob;
ArcKnob smoothingKnob;
juce::ToggleButton freezeButton;
juce::ToggleButton monoButton;
juce::ComboBox scaleBox;
juce::Label fadeLabel, sensitivityLabel, dotSizeLabel, smoothingLabel;
@ -32,6 +33,7 @@ private:
std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> dotSizeAttachment;
std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> smoothingAttachment;
std::unique_ptr<juce::AudioProcessorValueTreeState::ButtonAttachment> freezeAttachment;
std::unique_ptr<juce::AudioProcessorValueTreeState::ButtonAttachment> monoAttachment;
float currentScale = 1.0f;
static constexpr int kBaseWidth = 420;
@ -39,6 +41,7 @@ private:
static constexpr int kFooterHeight = 28;
static constexpr int kKnobSize = 54;
static constexpr int kKnobMargin = 6;
static constexpr float kMaxScale = 3.0f;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TerionProcessorEditor)
};