![]() |
fsh::stk
fantastic spatial holophonic synthesis toolkit
|
Used to add an integer parameter to a plugin. More...
#include <ParamInt.h>
Classes | |
struct | Range |
Used to specify the parameter's range. More... | |
Public Types | |
using | Attributes = juce::AudioParameterIntAttributes |
Used to specify the parameter's attributes, e.g. a label. See the JUCE docs for details. | |
Public Member Functions | |
auto | create () const |
Creates a juce::AudioParameterInt object from the given parameters. | |
Public Attributes | |
juce::ParameterID | id |
The parameter's unique ID, used to identify it in the DAW. | |
juce::String | name |
The parameter's name, displayed in the DAW's automation. | |
Range | range |
The parameter's range. | |
float | defaultVal = 0.0 |
The parameter's default value. | |
Attributes | attributes = {} |
The parameter's attributes, e.g. a label. | |
Used to add an integer parameter to a plugin.
Use a designated initializer and call create() directly for maximum readability, e.g.:
Return a list of these inside a function returning a juce::AudioProcessorValueTreeState::ParameterLayout object to create the parameter layout, which you can then pass to the constructor of your plugin's PluginState class.