49 template <
typename StringLike,
typename = DisableIfSameOrDerived<ParameterID, StringLike>>
110 bool meta =
false, automatable =
true, inverted =
false;
141 const String& parameterName,
152 [[deprecated (
"Prefer the signature taking an Attributes argument")]]
154 const String& parameterName,
155 const String& parameterLabel,
156 Category parameterCategory = AudioProcessorParameter::genericParameter)
160 .withCategory (parameterCategory))
176 String getName (
int)
const override;
177 String getLabel()
const override;
178 Category getCategory()
const override;
186 bool meta =
false, automatable =
true, inverted =
false;
An instance of this class may be passed to the constructor of an AudioProcessorParameterWithID to set...
auto withLabel(String x) const
An optional label for the parameter's value.
auto withCategory(Category x) const
The semantics of this parameter.
auto getLabel() const
An optional label for the parameter's value.
auto withMeta(bool x) const
auto getCategory() const
The semantics of this parameter.
auto withAutomatable(bool x) const
auto withInverted(bool x) const
auto getAutomatable() const
This abstract base class is used by some AudioProcessorParameter helper classes.
bool isOrientationInverted() const override
This can be overridden to tell the host that this parameter operates in the reverse direction.
AudioProcessorParameterWithID(const ParameterID ¶meterID, const String ¶meterName, const String ¶meterLabel, Category parameterCategory=AudioProcessorParameter::genericParameter)
The creation of this object requires providing a name and ID which will be constant for its lifetime.
const String label
Provides access to the parameter's label.
const String name
Provides access to the parameter's name.
String getParameterID() const override
Returns an ID that is unique to this parameter.
bool isAutomatable() const override
Returns true if the host can automate this parameter.
const String paramID
Provides access to the parameter's ID string.
const Category category
Provides access to the parameter's category.
bool isMetaParameter() const override
Should return true if this parameter is a "meta" parameter.
@ genericParameter
If your parameter is not a meter then you should use this category.
Combines a parameter ID and a version hint.
ParameterID(StringLike &&identifier, int versionHint=0)
Constructs an instance.
auto getVersionHint() const
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...
A parameter with functions that are useful for plugin hosts.