A parameter with user values, real time safe callbacks, modulation, and all sorts of other fancy stuff.
More...
Inherits juce::AudioPluginInstance::HostedParameter, juce::AsyncUpdater, and juce::Timer.
|
| Parameter (Processor &, juce::String uid, juce::String name, juce::String shortName, juce::String label, float minValue, float maxValue, float intervalValue, float defaultValue, float skewFactor=1.0f, std::function< juce::String(const Parameter &, float)> textFunction=nullptr) |
|
| Parameter (Processor &, juce::String uid, juce::String name, juce::String shortName, juce::String label, juce::NormalisableRange< float > range, float defaultValue, std::function< juce::String(const Parameter &, float)> textFunction=nullptr) |
|
juce::String | getUid () const |
|
void | setInternal (bool i) |
|
bool | isInternal () const |
|
void | setModIndex (int i) |
|
int | getModIndex () const |
|
void | setModMatrix (ModMatrix *m) |
|
ModMatrix * | getModMatrix () const |
|
virtual void | prepareToPlay (double, int) |
|
virtual void | reset () |
|
float | getProcValue () |
|
virtual float | getProcValue (int) |
|
float | getUserValue () const |
|
int | getUserValueInt () const |
|
bool | getUserValueBool () const |
|
float | getUserDefaultValue () const |
|
virtual void | setUserValue (float v) |
|
virtual void | setUserValueNotifingHost (float f) |
|
void | setUserValueAsUserAction (float f) |
|
juce::String | getUserValueText () const |
|
juce::String | userValueToText (float val) |
|
bool | isOnOff () |
|
bool | isOn () |
|
virtual bool | isSmoothingActive () |
|
void | beginUserAction () |
|
void | beginUserTimedAction () |
|
void | endUserAction () |
|
juce::NormalisableRange< float > | getUserRange () const |
|
float | getUserRangeStart () const |
|
float | getUserRangeEnd () const |
|
void | addListener (ParameterListener *listener) |
|
void | removeListener (ParameterListener *listener) |
|
ParamState | getState () |
|
void | setState (const ParamState &state) |
|
juce::String | getParameterID () const override |
|
float | getValue () const override |
|
bool | getBoolValue () const |
|
void | setValue (float newValue) override |
|
float | getDefaultValue () const override |
|
juce::String | getName (int maximumStringLength) const override |
|
juce::String | getShortName () const |
|
juce::String | getLabel () const override |
|
int | getNumSteps () const override |
|
juce::String | getText (float value, int) const override |
|
float | getValueForText (const juce::String &text) const override |
|
bool | isOrientationInverted () const override |
|
bool | isAutomatable () const override |
|
bool | isMetaParameter () const override |
|
float | getSkew () |
|
bool | isSkewSymmetric () |
|
A parameter with user values, real time safe callbacks, modulation, and all sorts of other fancy stuff.
A paramter return it's value in 3 formats: value: always 0..1 user value: range as displayed to user proc value: range used for processing
For example, a gain parameter may have a user range of -100 to +10 dB. The coresponding proc range would be 0 to 3.1623. By default user value and proc value are the same. To provide an alternate proc value, set conversionFunction
Parameters can be either internal or external. External parameters are exposed to the host and can be modulated. Internal parameters are for things that should not be modulated.
Parameters can optionally be added to a modmatrix