JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::AudioParameterChoiceAttributes Class Reference

Properties of an AudioParameterChoice. More...

#include <juce_AudioParameterChoice.h>

Inheritance diagram for juce::AudioParameterChoiceAttributes:
Collaboration diagram for juce::AudioParameterChoiceAttributes:

Public Types

using Category = AudioProcessorParameter::Category
 
using StringFromValue = std::function< String(int, int)>
 
using ValueFromString = std::function< int(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
 

Detailed Description

Properties of an AudioParameterChoice.

See also
AudioParameterChoice(), RangedAudioParameterAttributes()

@tags{Audio}

Member Typedef Documentation

◆ Category

◆ StringFromValue

using juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::StringFromValue = std::function<String (int , int)>
inherited

◆ This

◆ ValueFromString

using juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::ValueFromString = std::function<int (const String&)>
inherited

Member Function Documentation

◆ asDerived()

auto & juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::asDerived ( ) const
inlineprivateinherited

◆ getAudioProcessorParameterWithIDAttributes()

const auto & juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::getAudioProcessorParameterWithIDAttributes ( ) const
inlineinherited

Gets attributes that would also apply to an AudioProcessorParameterWithID.

◆ getStringFromValueFunction()

const auto & juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::getStringFromValueFunction ( ) const
inlineinherited

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.

◆ getValueFromStringFunction()

const auto & juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::getValueFromStringFunction ( ) const
inlineinherited

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.

◆ withAutomatable()

◆ withCategory()

◆ withInverted()

◆ withLabel()

◆ withMeta()

◆ withStringFromValueFunction()

auto juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::withStringFromValueFunction ( StringFromValue  x) const
inlineinherited

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.

◆ withValueFromStringFunction()

auto juce::RangedAudioParameterAttributes< AudioParameterChoiceAttributes , int >::withValueFromStringFunction ( ValueFromString  x) const
inlineinherited

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.

Member Data Documentation

◆ attributes

◆ stringFromValue

◆ valueFromString


The documentation for this class was generated from the following file: