68 const String& parameterName,
88 [[deprecated (
"Prefer the signature taking an Attributes argument")]]
90 const String& parameterName,
93 const String& parameterLabel,
94 Category parameterCategory = AudioProcessorParameter::genericParameter,
99 std::move (normalisableRange),
102 .withCategory (parameterCategory)
103 .withStringFromValueFunction (
std::move (stringFromValue))
104 .withValueFromStringFunction (
std::move (valueFromString)))
114 const String& parameterName,
123 float get() const noexcept {
return value; }
126 operator float() const noexcept {
return value; }
145 float getValue()
const override;
146 void setValue (
float newValue)
override;
147 float getDefaultValue()
const override;
148 int getNumSteps()
const override;
149 String getText (
float,
int)
const override;
150 float getValueForText (
const String&)
const override;
153 const float valueDefault;
Properties of an AudioParameterFloat.
A subclass of AudioProcessorParameter that provides an easy way to create a parameter which maps onto...
float get() const noexcept
Returns the parameter's current value.
AudioParameterFloat(const ParameterID ¶meterID, const String ¶meterName, NormalisableRange< float > normalisableRange, float defaultValue, const String ¶meterLabel, Category parameterCategory=AudioProcessorParameter::genericParameter, std::function< String(float value, int maximumStringLength)> stringFromValue=nullptr, std::function< float(const String &text)> valueFromString=nullptr)
Creates a AudioParameterFloat with the specified parameters.
const NormalisableRange< float > & getNormalisableRange() const override
Returns the range of values that the parameter can take.
NormalisableRange< float > range
Provides access to the parameter's range.
Represents a mapping between an arbitrary range of values and a normalised 0->1 range.
Combines a parameter ID and a version hint.
This abstract base class is used by some AudioProcessorParameter helper classes.
@ valueChanged
Indicates that the UI element's value has changed.