|
JUCE
|
#include <juce_RangedAudioParameter.h>
Public Types | |
| using | Category = AudioProcessorParameter::Category |
| using | StringFromValue = std::function<String (Value, int)> |
| using | ValueFromString = std::function<Value (const String&)> |
Public Member Functions | |
| JUCE_NODISCARD auto | withStringFromValueFunction (StringFromValue x) const |
| An optional lambda function that converts a non-normalised value to a string with a maximum length. | |
| JUCE_NODISCARD auto | withValueFromStringFunction (ValueFromString x) const |
| An optional lambda function that parses a string and converts it into a non-normalised value. | |
| JUCE_NODISCARD auto | withLabel (String x) const |
| See AudioProcessorParameterWithIDAttributes::withLabel(). | |
| JUCE_NODISCARD auto | withCategory (Category x) const |
| See AudioProcessorParameterWithIDAttributes::withCategory(). | |
| JUCE_NODISCARD auto | withMeta (bool x) const |
| See AudioProcessorParameter::isMetaParameter(). | |
| JUCE_NODISCARD auto | withAutomatable (bool x) const |
| See AudioProcessorParameter::isAutomatable(). | |
| JUCE_NODISCARD auto | withInverted (bool x) const |
| See AudioProcessorParameter::isOrientationInverted(). | |
| JUCE_NODISCARD const auto & | getStringFromValueFunction () const |
| An optional lambda function that converts a non-normalised value to a string with a maximum length. | |
| JUCE_NODISCARD const auto & | getValueFromStringFunction () const |
| An optional lambda function that parses a string and converts it into a non-normalised value. | |
| JUCE_NODISCARD const auto & | getAudioProcessorParameterWithIDAttributes () const |
| Gets attributes that would also apply to an AudioProcessorParameterWithID. | |
Holds common attributes of audio parameters.
CRTP is used here because we want the Attributes types for each parameter (Float, Bool, Choice, Int) to be distinct and extensible in the future. i.e. the identifiers AudioParameterFloatAttributes and RangedAudioParameterAttributes<float> should not be interchangable because we might need to add float-specific attributes in the future. Users should not refer directly to RangedAudioParameterAttributes.
| using RangedAudioParameterAttributes< Derived, Value >::Category = AudioProcessorParameter::Category |
| using RangedAudioParameterAttributes< Derived, Value >::StringFromValue = std::function<String (Value, int)> |
| using RangedAudioParameterAttributes< Derived, Value >::ValueFromString = std::function<Value (const String&)> |
| JUCE_NODISCARD auto RangedAudioParameterAttributes< Derived, Value >::withStringFromValueFunction | ( | StringFromValue | x | ) | const |
An optional lambda function that converts a non-normalised value to a string with a maximum length.
This may be used by hosts to display the parameter's value.
References JUCE_NODISCARD, and withMember().
| JUCE_NODISCARD auto RangedAudioParameterAttributes< Derived, Value >::withValueFromStringFunction | ( | ValueFromString | x | ) | const |
An optional lambda function that parses a string and converts it into a non-normalised value.
Some hosts use this to allow users to type in parameter values.
References JUCE_NODISCARD, and withMember().
| JUCE_NODISCARD auto RangedAudioParameterAttributes< Derived, Value >::withLabel | ( | String | x | ) | const |
See AudioProcessorParameterWithIDAttributes::withLabel().
References JUCE_NODISCARD, and withMember().
| JUCE_NODISCARD auto RangedAudioParameterAttributes< Derived, Value >::withCategory | ( | Category | x | ) | const |
See AudioProcessorParameterWithIDAttributes::withCategory().
References JUCE_NODISCARD, and withMember().
| JUCE_NODISCARD auto RangedAudioParameterAttributes< Derived, Value >::withMeta | ( | bool | x | ) | const |
See AudioProcessorParameter::isMetaParameter().
References JUCE_NODISCARD, and withMember().
| JUCE_NODISCARD auto RangedAudioParameterAttributes< Derived, Value >::withAutomatable | ( | bool | x | ) | const |
See AudioProcessorParameter::isAutomatable().
References JUCE_NODISCARD, and withMember().
| JUCE_NODISCARD auto RangedAudioParameterAttributes< Derived, Value >::withInverted | ( | bool | x | ) | const |
See AudioProcessorParameter::isOrientationInverted().
References JUCE_NODISCARD, and withMember().
| JUCE_NODISCARD const auto & RangedAudioParameterAttributes< Derived, Value >::getStringFromValueFunction | ( | ) | const |
An optional lambda function that converts a non-normalised value to a string with a maximum length.
This may be used by hosts to display the parameter's value.
References JUCE_NODISCARD.
| JUCE_NODISCARD const auto & RangedAudioParameterAttributes< Derived, Value >::getValueFromStringFunction | ( | ) | const |
An optional lambda function that parses a string and converts it into a non-normalised value.
Some hosts use this to allow users to type in parameter values.
References JUCE_NODISCARD.
| JUCE_NODISCARD const auto & RangedAudioParameterAttributes< Derived, Value >::getAudioProcessorParameterWithIDAttributes | ( | ) | const |
Gets attributes that would also apply to an AudioProcessorParameterWithID.
References JUCE_NODISCARD.