#include <juce_RangedAudioParameter.h>
Public Types | |
using | Category = AudioProcessorParameter::Category |
using | StringFromValue = std::function< String(Value, int)> |
using | ValueFromString = std::function< Value(const String &)> |
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.
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< AudioParameterChoiceAttributes, int >::withAutomatable(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withCategory(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withInverted(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withLabel(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withMeta(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withStringFromValueFunction(), and juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withValueFromStringFunction().
|
inline |
Gets attributes that would also apply to an AudioProcessorParameterWithID.
|
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.
|
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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.
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.
Referenced by juce::AudioProcessorValueTreeStateParameterAttributes::withValueFromStringFunction().
|
private |
Referenced by juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::getAudioProcessorParameterWithIDAttributes(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withAutomatable(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withCategory(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withInverted(), juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withLabel(), and juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes, int >::withMeta().
|
private |
|
private |