#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 | |
| const auto & | getAudioProcessorParameterWithIDAttributes () const |
| Gets attributes that would also apply to an AudioProcessorParameterWithID. | |
| const auto & | getStringFromValueFunction () const |
| An optional lambda function that converts a non-normalised value to a string with a maximum length. | |
| const auto & | getValueFromStringFunction () const |
| An optional lambda function that parses a string and converts it into a non-normalised value. | |
| auto | withAutomatable (bool x) const |
| See AudioProcessorParameter::isAutomatable() | |
| auto | withCategory (Category x) const |
| See AudioProcessorParameterWithIDAttributes::withCategory() | |
| auto | withInverted (bool x) const |
| See AudioProcessorParameter::isOrientationInverted() | |
| auto | withLabel (String x) const |
| See AudioProcessorParameterWithIDAttributes::withLabel() | |
| auto | withMeta (bool x) const |
| See AudioProcessorParameter::isMetaParameter() | |
| auto | withStringFromValueFunction (StringFromValue x) const |
| An optional lambda function that converts a non-normalised value to a string with a maximum length. | |
| auto | withValueFromStringFunction (ValueFromString x) const |
| An optional lambda function that parses a string and converts it into a non-normalised value. | |
Private Types | |
| using | This = RangedAudioParameterAttributes |
Private Member Functions | |
| auto & | asDerived () const |
Private Attributes | |
| AudioProcessorParameterWithIDAttributes | attributes |
| StringFromValue | stringFromValue |
| ValueFromString | valueFromString |
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.
@tags{Audio}
| using juce::RangedAudioParameterAttributes< Derived, Value >::Category = AudioProcessorParameter::Category |
| using juce::RangedAudioParameterAttributes< Derived, Value >::StringFromValue = std::function<String (Value, int)> |
|
private |
| using juce::RangedAudioParameterAttributes< Derived, Value >::ValueFromString = std::function<Value (const String&)> |
|
inlineprivate |
Referenced by juce::RangedAudioParameterAttributes< Derived, Value >::withAutomatable(), juce::RangedAudioParameterAttributes< Derived, Value >::withCategory(), juce::RangedAudioParameterAttributes< Derived, Value >::withInverted(), juce::RangedAudioParameterAttributes< Derived, Value >::withLabel(), juce::RangedAudioParameterAttributes< Derived, Value >::withMeta(), juce::RangedAudioParameterAttributes< Derived, Value >::withStringFromValueFunction(), and juce::RangedAudioParameterAttributes< Derived, Value >::withValueFromStringFunction().
|
inline |
Gets attributes that would also apply to an AudioProcessorParameterWithID.
References juce::RangedAudioParameterAttributes< Derived, Value >::attributes.
|
inline |
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::RangedAudioParameterAttributes< Derived, Value >::stringFromValue.
|
inline |
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::RangedAudioParameterAttributes< Derived, Value >::valueFromString.
|
inline |
See AudioProcessorParameter::isAutomatable()
References juce::RangedAudioParameterAttributes< Derived, Value >::asDerived(), juce::RangedAudioParameterAttributes< Derived, Value >::attributes, juce::AudioProcessorParameterWithIDAttributes::withAutomatable(), and juce::withMember().
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withAutomatable().
|
inline |
See AudioProcessorParameterWithIDAttributes::withCategory()
References juce::RangedAudioParameterAttributes< Derived, Value >::asDerived(), juce::RangedAudioParameterAttributes< Derived, Value >::attributes, juce::AudioProcessorParameterWithIDAttributes::withCategory(), and juce::withMember().
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withCategory().
|
inline |
See AudioProcessorParameter::isOrientationInverted()
References juce::RangedAudioParameterAttributes< Derived, Value >::asDerived(), juce::RangedAudioParameterAttributes< Derived, Value >::attributes, juce::AudioProcessorParameterWithIDAttributes::withInverted(), and juce::withMember().
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withInverted().
|
inline |
See AudioProcessorParameterWithIDAttributes::withLabel()
References juce::RangedAudioParameterAttributes< Derived, Value >::asDerived(), juce::RangedAudioParameterAttributes< Derived, Value >::attributes, juce::AudioProcessorParameterWithIDAttributes::withLabel(), and juce::withMember().
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withLabel().
|
inline |
See AudioProcessorParameter::isMetaParameter()
References juce::RangedAudioParameterAttributes< Derived, Value >::asDerived(), juce::RangedAudioParameterAttributes< Derived, Value >::attributes, juce::withMember(), and juce::AudioProcessorParameterWithIDAttributes::withMeta().
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withMeta().
|
inline |
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::RangedAudioParameterAttributes< Derived, Value >::asDerived(), and juce::withMember().
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withStringFromValueFunction().
|
inline |
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::RangedAudioParameterAttributes< Derived, Value >::asDerived(), and juce::withMember().
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withValueFromStringFunction().
|
private |
Referenced by juce::RangedAudioParameterAttributes< Derived, Value >::getAudioProcessorParameterWithIDAttributes(), juce::RangedAudioParameterAttributes< Derived, Value >::withAutomatable(), juce::RangedAudioParameterAttributes< Derived, Value >::withCategory(), juce::RangedAudioParameterAttributes< Derived, Value >::withInverted(), juce::RangedAudioParameterAttributes< Derived, Value >::withLabel(), and juce::RangedAudioParameterAttributes< Derived, Value >::withMeta().
|
private |
|
private |