I am defining some AudioParameterFloats like so:
addParameter (myParam = new AudioParameterFloat ("myParam",
"My Param",
0.0f,
100.0f,
50.0f));
Elsewhere in my code I iterate over my AudioParameterFloats and dynamically construct a slider for each one.
When doing so, I can access the first 4 parameters that were passed to the AudioParameterFloat constructor, namely:
param->paramID
param->name
param->range.start
param->range.end
However I cannot access the 5th parameter, which is the AudioParameterFloat’s default value. AudioParameterFloat has a defaultValue member, and a getDefaultValue() method, but they are both private.
The reason I want to access the default value is so that I can do something like this:
mySlider->setDoubleClickReturnValue(true, param->defaultValue); // No go
Before I implement a workaround, I want to check that there is in fact no way to retrieve an AudioParameterFloat’s default value once it has been set?