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

Advanced properties of an AudioProcessorValueTreeState::Parameter. More...

#include <juce_AudioProcessorValueTreeState.h>

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
 

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

Member Function Documentation

◆ withStringFromValueFunction()

auto AudioProcessorValueTreeStateParameterAttributes::withStringFromValueFunction ( StringFromValue x) const
nodiscard

◆ withValueFromStringFunction()

auto AudioProcessorValueTreeStateParameterAttributes::withValueFromStringFunction ( ValueFromString x) const
nodiscard

◆ withLabel()

auto AudioProcessorValueTreeStateParameterAttributes::withLabel ( String x) const
nodiscard

◆ withCategory()

auto AudioProcessorValueTreeStateParameterAttributes::withCategory ( Category x) const
nodiscard

◆ withMeta()

auto AudioProcessorValueTreeStateParameterAttributes::withMeta ( bool x) const
nodiscard

◆ withAutomatable()

auto AudioProcessorValueTreeStateParameterAttributes::withAutomatable ( bool x) const
nodiscard

◆ withInverted()

auto AudioProcessorValueTreeStateParameterAttributes::withInverted ( bool x) const
nodiscard

◆ withDiscrete()

auto AudioProcessorValueTreeStateParameterAttributes::withDiscrete ( bool x) const
nodiscard

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 withMember(), and x.

◆ withBoolean()

auto AudioProcessorValueTreeStateParameterAttributes::withBoolean ( bool x) const
nodiscard

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

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

References withMember(), and x.

◆ getAudioParameterFloatAttributes()

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

◆ getDiscrete()

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

◆ getBoolean()

const auto & AudioProcessorValueTreeStateParameterAttributes::getBoolean ( ) const
nodiscard
Returns
'true' if this parameter only has two valid states.

The documentation for this class was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram