TracktionEngine
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
engine::AutomationCurveList Class Reference

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::PtrgetItems ()
 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.
 

Detailed Description

Manages a list of AutomationCurveModifiers which can be used to control the values and modifiers of AutomatableParameters.

Constructor & Destructor Documentation

◆ AutomationCurveList()

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)

◆ ~AutomationCurveList()

engine::AutomationCurveList::~AutomationCurveList ( )

Destructor.

Member Function Documentation

◆ getItems()

std::vector< AutomationCurveModifier::Ptr > engine::AutomationCurveList::getItems ( )

Returns the list of AutomationCurveModifiers.

◆ addCurve()

AutomationCurveModifier::Ptr engine::AutomationCurveList::addCurve ( const AutomatableParameter &  destParam)

Adds a new curve modifier assigned to destParam.

◆ removeCurve()

void engine::AutomationCurveList::removeCurve ( int  idx)

Removes the curve at the given index.

◆ addListener()

void engine::AutomationCurveList::addListener ( Listener )

Adds a Listener.

◆ removeListener()

void engine::AutomationCurveList::removeListener ( Listener )

Removes a Listener.


The documentation for this class was generated from the following file: