TracktionEngine
|
Manages a list of AutomationCurveModifiers which can be used to control the values and modifiers of AutomatableParameters. More...
#include <tracktion_AutomationCurveList.h>
Classes | |
struct | Listener |
Listener interface. More... | |
Public Member Functions | |
AutomationCurveList (Edit &, const juce::ValueTree &, std::function< CurvePosition()> getPositionDelegate, std::function< ClipPositionInfo()> getClipPositionDelegate) | |
Constructs an AutomationCurveList for the given state. | |
~AutomationCurveList () | |
Destructor. | |
std::vector< AutomationCurveModifier::Ptr > | getItems () |
Returns the list of AutomationCurveModifiers. | |
AutomationCurveModifier::Ptr | addCurve (const AutomatableParameter &destParam) |
Adds a new curve modifier assigned to destParam. | |
void | removeCurve (int idx) |
Removes the curve at the given index. | |
void | addListener (Listener &) |
Adds a Listener. | |
void | removeListener (Listener &) |
Removes a Listener. | |
Manages a list of AutomationCurveModifiers which can be used to control the values and modifiers of AutomatableParameters.
engine::AutomationCurveList::AutomationCurveList | ( | Edit & | , |
const juce::ValueTree & | , | ||
std::function< CurvePosition()> | getPositionDelegate, | ||
std::function< ClipPositionInfo()> | getClipPositionDelegate | ||
) |
Constructs an AutomationCurveList for the given state.
Two delegates should be provided which will be passes to the AutomationCurveModifiers. These should be real-time and thread-safe as they're called by multiple threads, including the audio thread. The CurvePosition should return where in the Edit this curve should be started at The ClipPositionInfo should return the clip's offset and loop range (if looping)
engine::AutomationCurveList::~AutomationCurveList | ( | ) |
Destructor.
std::vector< AutomationCurveModifier::Ptr > engine::AutomationCurveList::getItems | ( | ) |
Returns the list of AutomationCurveModifiers.
AutomationCurveModifier::Ptr engine::AutomationCurveList::addCurve | ( | const AutomatableParameter & | destParam | ) |
Adds a new curve modifier assigned to destParam.
void engine::AutomationCurveList::removeCurve | ( | int | idx | ) |
Removes the curve at the given index.