Add dynamic toggle options. Add toggle for turning on and off the autotune
This commit is contained in:
michalcourson
2025-11-04 20:31:55 -05:00
parent cf0498a121
commit fe6ee5e51e
9 changed files with 356 additions and 195 deletions

View File

@ -161,6 +161,16 @@ WebViewPluginAudioProcessorEditor::WebViewPluginAudioProcessorEditor(WebViewPlug
options = options.withOptionsFrom(*slider_relays.back());
}
for (auto& toggleId : p.parameters.toggleIds) {
toggle_relays.push_back(new WebToggleButtonRelay{ toggleId });
toggle_attatchments.push_back(new
WebToggleButtonParameterAttachment(
*processorRef.state.getParameter(toggleId),
*toggle_relays.back(),
processorRef.state.undoManager));
options = options.withOptionsFrom(*toggle_relays.back());
}
webComponent = new SinglePageBrowser(options);
addAndMakeVisible(*webComponent);