93 : version (versionHint) {}
134 void setValueNotifyingHost (
float newValue);
142 void beginChangeGesture();
149 void endChangeGesture();
177 virtual int getNumSteps()
const;
188 virtual bool isDiscrete()
const;
200 virtual bool isBoolean()
const;
207 virtual String getText (
float normalisedValue,
int )
const;
216 virtual bool isOrientationInverted()
const;
221 virtual bool isAutomatable()
const;
228 virtual bool isMetaParameter()
const;
232 genericParameter = (0 << 16) | 0,
234 inputGain = (1 << 16) | 0,
235 outputGain = (1 << 16) | 1,
242 inputMeter = (2 << 16) | 0,
243 outputMeter = (2 << 16) | 1,
244 compressorLimiterGainReductionMeter = (2 << 16) | 2,
245 expanderGateGainReductionMeter = (2 << 16) | 3,
246 analysisMeter = (2 << 16) | 4,
247 otherMeter = (2 << 16) | 5
251 virtual Category getCategory()
const;
266 virtual String getCurrentValueAsText()
const;
331 void addListener (
Listener* newListener);
337 void removeListener (
Listener* listener);
341 void sendValueChangedMessageToListeners (
float newValue);
348 int parameterIndex = -1;
355 bool isPerformingGesture =
false;
Holds a resizable array of primitive or copy-by-value objects.
A base class for listeners that want to know about changes to an AudioProcessorParameter.
virtual ~Listener()=default
Destructor.
virtual void parameterValueChanged(int parameterIndex, float newValue)=0
Receives a callback when a parameter has been changed.
virtual void parameterGestureChanged(int parameterIndex, bool gestureIsStarting)=0
Indicates that a parameter change gesture has started.
An abstract base class for parameter objects that can be added to an AudioProcessor.
virtual float getValue() const =0
Called by the host to find out the value of this parameter.
virtual String getLabel() const =0
Some parameters may be able to return a label string for their units.
virtual float getDefaultValue() const =0
This should return the default value for this parameter.
virtual void setValue(float newValue)=0
The host will call this method to change the value of a parameter.
AudioProcessorParameter(int versionHint)
The version hint supplied to this constructor is used in Audio Unit plugins to aid ordering parameter...
int getParameterIndex() const noexcept
Returns the index of this parameter in its parent processor's parameter list.
virtual float getValueForText(const String &text) const =0
Should parse a string and return the appropriate value for it.
int getVersionHint() const
virtual String getName(int maximumStringLength) const =0
Returns the name to display for this parameter, which should be made to fit within the given string l...
Base class for audio processing classes or plugins.
A special array for holding a list of strings.