Loading...
Searching...
No Matches
juce::AudioProcessorValueTreeStateParameterAttributes Class Reference

Detailed Description

Advanced properties of an AudioProcessorValueTreeState::Parameter.

The members here have the same meaning as the similarly-named member functions of AudioParameterFloatAttributes.

See also
AudioParameterFloatAttributes, RangedAudioParameterAttributes

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

Public Member Functions

auto withStringFromValueFunction (StringFromValue x) const
auto withValueFromStringFunction (ValueFromString x) const
auto withLabel (String x) const
auto withCategory (Category x) const
auto withMeta (bool x) const
auto withAutomatable (bool x) const
auto withInverted (bool x) const
auto withDiscrete (bool x) const
 Pass 'true' if this parameter has discrete steps, or 'false' if the parameter is continuous.
auto withBoolean (bool x) const
 Pass 'true' if this parameter only has two valid states.
const auto & getAudioParameterFloatAttributes () const
const auto & getDiscrete () const
const auto & getBoolean () const

Member Functions

◆ withStringFromValueFunction()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withStringFromValueFunction ( StringFromValue x) const
inlinenodiscard

◆ withValueFromStringFunction()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withValueFromStringFunction ( ValueFromString x) const
inlinenodiscard

◆ withLabel()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withLabel ( String x) const
inlinenodiscard

◆ withCategory()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withCategory ( Category x) const
inlinenodiscard

◆ withMeta()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withMeta ( bool x) const
inlinenodiscard

◆ withAutomatable()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withAutomatable ( bool x) const
inlinenodiscard

◆ withInverted()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withInverted ( bool x) const
inlinenodiscard

◆ withDiscrete()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withDiscrete ( bool x) const
inlinenodiscard

Pass 'true' if this parameter has discrete steps, or 'false' if the parameter is continuous.

Using an AudioParameterChoice or AudioParameterInt might be a better choice than setting this flag.

References juce::withMember(), and x.

◆ withBoolean()

auto juce::AudioProcessorValueTreeStateParameterAttributes::withBoolean ( bool x) const
inlinenodiscard

Pass 'true' if this parameter only has two valid states.

Using an AudioParameterBool might be a better choice than setting this flag.

References juce::withMember(), and x.

◆ getAudioParameterFloatAttributes()

const auto & juce::AudioProcessorValueTreeStateParameterAttributes::getAudioParameterFloatAttributes ( ) const
inlinenodiscard
Returns
all attributes that might also apply to an AudioParameterFloat

◆ getDiscrete()

const auto & juce::AudioProcessorValueTreeStateParameterAttributes::getDiscrete ( ) const
inlinenodiscard
Returns
'true' if this parameter has discrete steps, or 'false' if the parameter is continuous.

◆ getBoolean()

const auto & juce::AudioProcessorValueTreeStateParameterAttributes::getBoolean ( ) const
inlinenodiscard
Returns
'true' if this parameter only has two valid states.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram