Manages a set of AutomatableParameters for an Edit and notifies controllers and registered listeners when they change.
More...
#include <tracktion_ParameterChangeHandler.h>
Inherits juce::ChangeBroadcaster.
Manages a set of AutomatableParameters for an Edit and notifies controllers and registered listeners when they change.
◆ ParameterChangeHandler()
tracktion::engine::ParameterChangeHandler::ParameterChangeHandler |
( |
Edit & |
| ) |
|
◆ addListener()
void tracktion::engine::ParameterChangeHandler::addListener |
( |
Listener & |
| ) |
|
◆ removeListener()
void tracktion::engine::ParameterChangeHandler::removeListener |
( |
Listener & |
| ) |
|
◆ isEventPending()
bool tracktion::engine::ParameterChangeHandler::isEventPending |
( |
| ) |
const |
|
noexcept |
Returns true if there is either a parameter or action waiting to be assigned.
◆ parameterChanged()
void tracktion::engine::ParameterChangeHandler::parameterChanged |
( |
AutomatableParameter & |
parameter, |
|
|
bool |
fromAutomation |
|
) |
| |
Called by parameters when they are changed.
This is internally called by each parameter and will forward the call on to appropriate controllers and mapping sets if required.
◆ isParameterPending()
bool tracktion::engine::ParameterChangeHandler::isParameterPending |
( |
| ) |
const |
|
noexcept |
◆ getPendingParam()
Returns the parameter waiting to be assigned if there is one, otherwise a nullptr.
Note that if consumeEvent is true this will consume the pending event so can't be reused for other controllers.
◆ actionFunctionTriggered()
void tracktion::engine::ParameterChangeHandler::actionFunctionTriggered |
( |
int |
externalControllerID | ) |
|
Called by the accelerators when an assignable action is called.
This gets added to the pending list which CustomControllerSurfaces can check when controllers are moved and they are in MIDI learn mode.
◆ isActionFunctionPending()
bool tracktion::engine::ParameterChangeHandler::isActionFunctionPending |
( |
| ) |
const |
|
noexcept |
Returns true if there is an action function waiting to be assigned.
◆ getPendingActionFunctionId()
int tracktion::engine::ParameterChangeHandler::getPendingActionFunctionId |
( |
bool |
consumeEvent | ) |
|
|
noexcept |
Returns the pending action function waiting to be assigned or a nullptr if none has been.
The object returned should be owned by the caller. Note that if consumeEvent is true this will consume the pending event so can't be reused for other controllers.
◆ setParameterLearnActive()
void tracktion::engine::ParameterChangeHandler::setParameterLearnActive |
( |
bool |
a | ) |
|
Set true when UI up for learning parameters.
The documentation for this class was generated from the following file: