105 float normalise (
float f)
const {
return parameter.
convertTo0to1 (f); }
107 template <
typename Callback>
110 void parameterValueChanged (
int,
float)
override;
111 void parameterGestureChanged (
int,
bool)
override {}
112 void handleAsyncUpdate()
override;
154 void setValue (
float newValue);
155 void sliderValueChanged (
Slider*)
override;
162 bool ignoreCallbacks =
false;
202 void setValue (
float newValue);
203 void comboBoxChanged (
ComboBox*)
override;
208 bool ignoreCallbacks =
false;
243 void setValue (
float newValue);
244 void buttonClicked (
Button*)
override;
248 bool ignoreCallbacks =
false;
Has a callback method that is triggered asynchronously.
A base class for listeners that want to know about changes to an AudioProcessorParameter.
An object of this class maintains a connection between a ComboBox and a plug-in parameter.
~ComboBoxParameterAttachment() override
Destructor.
void sendInitialUpdate()
Call this after setting up your combo box in the case where you need to do extra setup after construc...
A class for receiving events from a ComboBox.
A component that lets the user choose from a drop-down list of choices.
Used to implement 'attachments' or 'controllers' that link a plug-in parameter to a UI element.
void endGesture()
Ends a gesture on the managed parameter.
void setValueAsCompleteGesture(float newDenormalisedValue)
Triggers a full gesture message on the managed parameter.
void sendInitialUpdate()
Calls the parameterChangedCallback function that was registered in the constructor,...
void beginGesture()
Begins a gesture on the managed parameter.
void setValueAsPartOfGesture(float newDenormalisedValue)
Updates the parameter value during a gesture.
~ParameterAttachment() override
Destructor.
This abstract base class is used by some AudioProcessorParameter helper classes.
float convertTo0to1(float v) const noexcept
Normalises and snaps a value based on the normalisable range.
An object of this class maintains a connection between a Slider and a plug-in parameter.
void sendInitialUpdate()
Call this after setting up your slider in the case where you need to do extra setup after constructin...
~SliderParameterAttachment() override
Destructor.
A class for receiving callbacks from a Slider.
A slider control for changing a value.
Manages a list of undo/redo commands.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...