TracktionEngine
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
tracktion_AutomationCurveList.h File Reference

Classes

struct  engine::MinBeatConstrainer< minBeats >
 
struct  engine::AutomatableParameterID
 Contains the ID of an AutomatableEditItem and the paramID. More...
 
struct  engine::CurvePosition
 A position of a curve in an Edit. More...
 
struct  engine::ClipPositionInfo
 Holds information about the position of a clip. More...
 
struct  engine::AutomationCurvePlayhead
 Holds a playhead for an AutomationCurveModifier type. More...
 
class  engine::AutomationCurveModifier
 An AutomationCurveModifier contains three curves to control automation: absolute, relative and scale. More...
 
struct  engine::AutomationCurveModifier::CurveTiming
 Holds the timing properties of a curve. More...
 
struct  engine::AutomationCurveModifier::CurveInfo
 Holds the curve and limits of a curve type. More...
 
struct  engine::AutomationCurveModifier::Listener
 Listener interface. More...
 
class  engine::AutomationCurveModifier::Assignment
 
struct  engine::BaseAndModValue
 Contains the base and modifier values if they are active. More...
 
class  engine::AutomationCurveList
 Manages a list of AutomationCurveModifiers which can be used to control the values and modifiers of AutomatableParameters. More...
 
struct  engine::AutomationCurveList::Listener
 Listener interface. More...
 
struct  juce::VariantConverter< tracktion::engine::CurveModifierType >
 

Namespaces

namespace  engine
 
namespace  engine::detail
 
namespace  juce
 

Enumerations

enum class  engine::CurveModifierType { engine::absolute , engine::relative , engine::scale }
 Determines the behaviour of a curve. More...
 

Functions

juce::String engine::toString (CurveModifierType)
 Converts a CurveModifierType to a string if possible.
 
std::optional< CurveModifierTypeengine::curveModifierTypeFromString (juce::String)
 Converts a string to a CurveModifierType if possible.
 
BaseAndModValue engine::getValuesAtEditPosition (AutomationCurveModifier &, AutomatableParameter &, EditPosition)
 Returns the base and modifier values this AutomationCurveModifier will apply at the given position.
 
BaseAndModValue engine::getValuesAtCurvePosition (AutomationCurveModifier &, AutomatableParameter &, EditPosition)
 Returns the base and modifier values this AutomationCurveModifier will apply at the given position.
 
BaseAndModValue engine::getValuesAtCurvePositionUnlooped (AutomationCurveModifier &, AutomatableParameter &, EditPosition)
 Similar to getValuesAtCurvePosition but doesn't apply the looping which can be useful when drawing the curves.
 
std::optional< EditPosition > engine::applyTimingToCurvePosition (AutomationCurveModifier &, CurveModifierType, EditPosition)
 Takes a position relative to the AutomationCurveModifier and applies the CurveTiming to it, giving a final position relative to the AutomationCurve.
 
std::optional< EditPosition > engine::editPositionToCurvePosition (AutomationCurveModifier &, CurveModifierType, EditPosition)
 Converts a position relative to the Edit and applies the CurvePosition and CurveTiming to it, giving a final position relative to the AutomationCurve.
 
float engine::getDefaultValue (AutomatableParameter &, CurveModifierType)
 Returns the default value used if there is no curve for the given type.
 
bool engine::hasAnyPoints (AutomationCurveModifier &)
 Returns true if any of the curves have any points.
 
AutomatableParameter::Ptr engine::getParameter (const AutomationCurveModifier &)
 Returns the destination parameter this curve is controlling.
 
AutomationCurveModifier::Ptr engine::getAutomationCurveModifierForID (Edit &, EditItemID)
 Returns the AutomationCurveModifier with the given EditItemID.
 
void engine::updateRelativeDestinationOrRemove (AutomationCurveList &, AutomationCurveModifier &, Clip &newParent)
 Looks at the destinations on the given AutomationCurveModifier and tries to re-assign parameters to corresponding parameters via the newParent Clip.
 
void engine::assignNewIDsToAutomationCurveModifiers (Edit &, juce::ValueTree &)
 Iterates over the given tree and gives new IDs to any AutomationCurveModifier states.
 
void engine::removeInvalidAutomationCurveModifiers (juce::ValueTree &, const AutomatableParameter &)
 Removes any assignments in the given state if they don't have the given parameter as the destination.
 
void engine::detail::processValue (AutomatableParameter &, CurveModifierType, float curveValue, float &baseValue, float &modValue)