42template <
typename Derived,
typename Value>
84 auto& asDerived()
const {
return *
static_cast<const Derived*
> (
this); }
86 AudioProcessorParameterWithIDAttributes attributes;
87 StringFromValue stringFromValue;
88 ValueFromString valueFromString;
102 using AudioProcessorParameterWithID::AudioProcessorParameterWithID;
111 int getNumSteps()
const override;
114 float convertTo0to1 (
float v)
const noexcept;
117 float convertFrom0to1 (
float v)
const noexcept;
auto withLabel(String x) const
An optional label for the parameter's value.
auto withCategory(Category x) const
The semantics of this parameter.
auto withMeta(bool x) const
auto withAutomatable(bool x) const
auto withInverted(bool x) const
This abstract base class is used by some AudioProcessorParameter helper classes.
Represents a mapping between an arbitrary range of values and a normalised 0->1 range.
auto withValueFromStringFunction(ValueFromString x) const
An optional lambda function that parses a string and converts it into a non-normalised value.
auto withMeta(bool x) const
See AudioProcessorParameter::isMetaParameter()
auto withCategory(Category x) const
See AudioProcessorParameterWithIDAttributes::withCategory()
auto withAutomatable(bool x) const
See AudioProcessorParameter::isAutomatable()
const auto & getValueFromStringFunction() const
An optional lambda function that parses a string and converts it into a non-normalised value.
const auto & getAudioProcessorParameterWithIDAttributes() const
Gets attributes that would also apply to an AudioProcessorParameterWithID.
auto withStringFromValueFunction(StringFromValue x) const
An optional lambda function that converts a non-normalised value to a string with a maximum length.
const auto & getStringFromValueFunction() const
An optional lambda function that converts a non-normalised value to a string with a maximum length.
auto withInverted(bool x) const
See AudioProcessorParameter::isOrientationInverted()
auto withLabel(String x) const
See AudioProcessorParameterWithIDAttributes::withLabel()
This abstract base class is used by some AudioProcessorParameter helper classes.
virtual const NormalisableRange< float > & getNormalisableRange() const =0
Returns the range of values that the parameter can take.
Represents a shared variant value.
Object withMember(Object copy, Member OtherObject::*member, Other &&value)
Copies an object, sets one of the copy's members to the specified value, and then returns the copy.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...