23#include <juce_audio_processors/juce_audio_processors.h>
57 return std::make_unique<juce::AudioParameterChoice>(
Used to add a choice (enum) parameter to a plugin.
Definition ParamChoice.h:44
auto create() const
Creates a juce::AudioParameterChoice object from the given parameters.
Definition ParamChoice.h:55
juce::AudioParameterChoiceAttributes Attributes
Used to specify the parameter's attributes, e.g. a label. See the JUCE docs for details.
Definition ParamChoice.h:46
Attributes attributes
The parameter's attributes, e.g. a label.
Definition ParamChoice.h:52
float defaultIndex
The parameter's default value, as an index into the choices array.
Definition ParamChoice.h:51
juce::ParameterID id
The parameter's unique ID, used to identify it in the DAW.
Definition ParamChoice.h:48
juce::StringArray choices
The parameter's choices, displayed in the DAW's automation.
Definition ParamChoice.h:50
juce::String name
The parameter's name, displayed in the DAW's automation.
Definition ParamChoice.h:49