mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-10-11 21:31:54 +02:00
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:
parent
94b9d4a8f8
commit
fbca80dfe3
3 changed files with 35 additions and 22 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue