Add persistent UI scale parameter (75%..200%)

- Add uiScale AudioParameterChoice to APVTS with 5 options (75%, 100%, 125%, 150%, 200%)
- Connect uiScaleBox ComboBox to parameter via ComboBoxAttachment
- Restore saved scale on editor creation
- Scale persists across plugin close/reopen via APVTS state
This commit is contained in:
Armin 2026-08-31 21:39:12 +02:00
commit fbca80dfe3
3 changed files with 35 additions and 22 deletions

View file

@ -288,6 +288,11 @@ juce::AudioProcessorValueTreeState::ParameterLayout ChromaFlockProcessor::create
juce::ParameterID{"reverbOn", 1}, "Reverb On",
juce::StringArray{"Off", "On"}, 1));
// UI SCALE
layout.add(std::make_unique<juce::AudioParameterChoice>(
juce::ParameterID{"uiScale", 1}, "UI Scale",
juce::StringArray{"75%", "100%", "125%", "150%", "200%"}, 1));
// ARPEGGIATOR
layout.add(std::make_unique<juce::AudioParameterChoice>(
juce::ParameterID{"arpEnabled", 1}, "Arp On",