closes #2
Add dynamic toggle options. Add toggle for turning on and off the autotune
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user