|
TracktionEngine
|
#include <tracktion_AutomationCurve.h>
Classes | |
| struct | AutomationPoint |
Public Types | |
| enum class | TimeBase { time , beats } |
Public Member Functions | |
| AutomationCurve (Edit &, TimeBase) | |
| AutomationCurve (Edit &, TimeBase, const juce::ValueTree &parent, const juce::ValueTree &state) | |
| AutomationCurve (const AutomationCurve &) | |
| void | setState (const juce::ValueTree &) |
| void | setParentState (const juce::ValueTree &) |
| void | setParameterID (juce::String) |
| Sets the paramID to store in the state. | |
| juce::String | getParameterID () const |
| Returns the parameter ID set or an empty string. | |
| int | getNumPoints () const noexcept |
| EditDuration | getDuration () const noexcept |
| AutomationPoint | getPoint (int index) const noexcept |
| EditPosition | getPointPosition (int index) const noexcept |
| float | getPointValue (int index) const noexcept |
| float | getPointCurve (int index) const noexcept |
| CurvePoint | getBezierHandle (int index) const noexcept |
| CurvePoint | getBezierPoint (int index) const noexcept |
| std::pair< CurvePoint, CurvePoint > | getBezierEnds (int index) const |
| void | getBezierEnds (int index, double &x1, float &y1, double &x2, float &y2) const noexcept |
| float | getValueAt (EditPosition, float defaultValue) const |
| int | indexBefore (EditPosition) const |
| int | nextIndexAfter (EditPosition) const |
| void | clear (juce::UndoManager *) |
| int | addPoint (EditPosition, float value, float curve, juce::UndoManager *) |
| void | removePoint (int index, juce::UndoManager *) |
| void | removePoints (EditTimeRange, juce::UndoManager *) |
| void | removePointsAndCloseGap (AutomatableParameter &, EditTimeRange, juce::UndoManager *) |
| void | removeRedundantPoints (EditTimeRange, juce::UndoManager *) |
| juce::Array< AutomationPoint > | getPointsInRegion (EditTimeRange) const |
| int | movePoint (int index, EditPosition, float newValue, std::optional< juce::Range< float > > valueLimits, bool removeInterveningPoints, juce::UndoManager *) |
| void | setPointValue (int index, float newValue, juce::UndoManager *) |
| void | setCurveValue (int index, float newCurve, juce::UndoManager *) |
| void | rescaleAllPositions (double factor, juce::UndoManager *) |
| void | rescaleValues (float factor, EditTimeRange, juce::Range< float > valueRange, juce::UndoManager *) |
| void | addToValues (float valueDelta, EditTimeRange, juce::Range< float > valueRange, juce::UndoManager *) |
| void | simplify (EditTimeRange, EditDuration minTimeDifference, float minValueDifference, juce::UndoManager *) |
| void | insertSpace (AutomatableParameter &, TimePosition, TimeDuration) |
| Inserts space at the given time, moving all points at or after that time. | |
| TimePosition | getPointTime (int index) const noexcept |
| float | getValueAt (TimePosition, float defaultValue) const |
| int | indexBefore (TimePosition) const |
| TimeDuration | getLength () const |
| int | nextIndexAfter (TimePosition) const |
| int | countPointsInRegion (EditTimeRange) const |
| int | addPoint (TimePosition, float value, float curve, juce::UndoManager *) |
| void | removePointsInRegion (TimeRange, juce::UndoManager *) |
| void | removeRegionAndCloseGap (AutomatableParameter &, TimeRange, juce::UndoManager *) |
| void | removeRedundantPoints (TimeRange, juce::UndoManager *) |
| juce::Array< AutomationPoint > | getPointsInRegion (TimeRange) const |
| void | rescaleValues (float factor, TimeRange, juce::Range< float > valueRange, juce::UndoManager *) |
| void | addToValues (float valueDelta, TimeRange, juce::Range< float > valueRange, juce::UndoManager *) |
| int | movePoint (AutomatableParameter &, int index, TimePosition, float newValue, bool removeInterveningPoints, juce::UndoManager *) |
| void | simplify (TimeRange, double minTimeDifference, float minValueDifference, juce::UndoManager *) |
| void | setPointPosition (int index, EditPosition, juce::UndoManager *) |
Static Public Member Functions | |
| static void | removeAllAutomationCurvesRecursively (const juce::ValueTree &) |
Public Attributes | |
| juce::CachedValue< AtomicWrapper< bool > > | bypass |
| If set to true, this curve is disabled, having no effect on the AutomatableParameter. | |
| Edit & | edit |
| const TimeBase | timeBase |
| juce::ValueTree | parentState |
| juce::ValueTree | state |
|
strong |
Referenced by AutomationCurve(), and setPointPosition().
| engine::AutomationCurve::AutomationCurve | ( | Edit & | , |
| TimeBase | , | ||
| const juce::ValueTree & | parent, | ||
| const juce::ValueTree & | state ) |
References state.
| engine::AutomationCurve::AutomationCurve | ( | const AutomationCurve & | ) |
References AutomationCurve().
| void engine::AutomationCurve::setState | ( | const juce::ValueTree & | ) |
| void engine::AutomationCurve::setParentState | ( | const juce::ValueTree & | ) |
| void engine::AutomationCurve::setParameterID | ( | juce::String | ) |
Sets the paramID to store in the state.
| juce::String engine::AutomationCurve::getParameterID | ( | ) | const |
Returns the parameter ID set or an empty string.
|
noexcept |
|
noexcept |
References getDuration().
Referenced by getDuration().
|
noexcept |
References getPoint().
Referenced by getPoint().
|
noexcept |
References getPointPosition().
Referenced by getPointPosition().
|
noexcept |
References getPointValue().
Referenced by getPointValue().
|
noexcept |
References getPointCurve().
Referenced by getPointCurve().
|
noexcept |
References getBezierHandle().
Referenced by getBezierHandle().
|
noexcept |
References getBezierPoint().
Referenced by getBezierPoint().
| std::pair< CurvePoint, CurvePoint > engine::AutomationCurve::getBezierEnds | ( | int | index | ) | const |
References getBezierEnds().
Referenced by getBezierEnds(), and getBezierEnds().
|
noexcept |
References getBezierEnds().
| float engine::AutomationCurve::getValueAt | ( | EditPosition | , |
| float | defaultValue ) const |
References getValueAt().
Referenced by getValueAt(), and getValueAt().
| int engine::AutomationCurve::indexBefore | ( | EditPosition | ) | const |
References indexBefore().
Referenced by indexBefore(), and indexBefore().
| int engine::AutomationCurve::nextIndexAfter | ( | EditPosition | ) | const |
References nextIndexAfter().
Referenced by nextIndexAfter(), and nextIndexAfter().
| void engine::AutomationCurve::clear | ( | juce::UndoManager * | ) |
| int engine::AutomationCurve::addPoint | ( | EditPosition | , |
| float | value, | ||
| float | curve, | ||
| juce::UndoManager * | ) |
References addPoint().
Referenced by addPoint(), and addPoint().
| void engine::AutomationCurve::removePoint | ( | int | index, |
| juce::UndoManager * | ) |
References removePoint().
Referenced by removePoint().
| void engine::AutomationCurve::removePoints | ( | EditTimeRange | , |
| juce::UndoManager * | ) |
References removePoints().
Referenced by removePoints().
| void engine::AutomationCurve::removePointsAndCloseGap | ( | AutomatableParameter & | , |
| EditTimeRange | , | ||
| juce::UndoManager * | ) |
References removePointsAndCloseGap().
Referenced by removePointsAndCloseGap().
| void engine::AutomationCurve::removeRedundantPoints | ( | EditTimeRange | , |
| juce::UndoManager * | ) |
References removeRedundantPoints().
Referenced by removeRedundantPoints(), and removeRedundantPoints().
| juce::Array< AutomationPoint > engine::AutomationCurve::getPointsInRegion | ( | EditTimeRange | ) | const |
References getPointsInRegion().
Referenced by getPointsInRegion(), and getPointsInRegion().
| int engine::AutomationCurve::movePoint | ( | int | index, |
| EditPosition | , | ||
| float | newValue, | ||
| std::optional< juce::Range< float > > | valueLimits, | ||
| bool | removeInterveningPoints, | ||
| juce::UndoManager * | ) |
References movePoint().
Referenced by movePoint(), and movePoint().
| void engine::AutomationCurve::setPointValue | ( | int | index, |
| float | newValue, | ||
| juce::UndoManager * | ) |
References setPointValue().
Referenced by setPointValue().
| void engine::AutomationCurve::setCurveValue | ( | int | index, |
| float | newCurve, | ||
| juce::UndoManager * | ) |
References setCurveValue().
Referenced by setCurveValue().
| void engine::AutomationCurve::rescaleAllPositions | ( | double | factor, |
| juce::UndoManager * | ) |
References rescaleAllPositions().
Referenced by rescaleAllPositions().
| void engine::AutomationCurve::rescaleValues | ( | float | factor, |
| EditTimeRange | , | ||
| juce::Range< float > | valueRange, | ||
| juce::UndoManager * | ) |
References rescaleValues().
Referenced by rescaleValues(), and rescaleValues().
| void engine::AutomationCurve::addToValues | ( | float | valueDelta, |
| EditTimeRange | , | ||
| juce::Range< float > | valueRange, | ||
| juce::UndoManager * | ) |
References addToValues().
Referenced by addToValues(), and addToValues().
| void engine::AutomationCurve::simplify | ( | EditTimeRange | , |
| EditDuration | minTimeDifference, | ||
| float | minValueDifference, | ||
| juce::UndoManager * | ) |
References simplify().
Referenced by simplify(), and simplify().
| void engine::AutomationCurve::insertSpace | ( | AutomatableParameter & | , |
| TimePosition | , | ||
| TimeDuration | ) |
Inserts space at the given time, moving all points at or after that time.
References insertSpace().
Referenced by insertSpace().
|
static |
References removeAllAutomationCurvesRecursively().
Referenced by removeAllAutomationCurvesRecursively().
|
noexcept |
References getPointTime().
Referenced by getPointTime().
| float engine::AutomationCurve::getValueAt | ( | TimePosition | , |
| float | defaultValue ) const |
References getValueAt().
| int engine::AutomationCurve::indexBefore | ( | TimePosition | ) | const |
References indexBefore().
| TimeDuration engine::AutomationCurve::getLength | ( | ) | const |
References getLength().
Referenced by getLength().
| int engine::AutomationCurve::nextIndexAfter | ( | TimePosition | ) | const |
References nextIndexAfter().
| int engine::AutomationCurve::countPointsInRegion | ( | EditTimeRange | ) | const |
References countPointsInRegion().
Referenced by countPointsInRegion().
| int engine::AutomationCurve::addPoint | ( | TimePosition | , |
| float | value, | ||
| float | curve, | ||
| juce::UndoManager * | ) |
References addPoint().
| void engine::AutomationCurve::removePointsInRegion | ( | TimeRange | , |
| juce::UndoManager * | ) |
References removePointsInRegion().
Referenced by removePointsInRegion().
| void engine::AutomationCurve::removeRegionAndCloseGap | ( | AutomatableParameter & | , |
| TimeRange | , | ||
| juce::UndoManager * | ) |
References removeRegionAndCloseGap().
Referenced by removeRegionAndCloseGap().
| void engine::AutomationCurve::removeRedundantPoints | ( | TimeRange | , |
| juce::UndoManager * | ) |
References removeRedundantPoints().
| juce::Array< AutomationPoint > engine::AutomationCurve::getPointsInRegion | ( | TimeRange | ) | const |
References getPointsInRegion().
| void engine::AutomationCurve::rescaleValues | ( | float | factor, |
| TimeRange | , | ||
| juce::Range< float > | valueRange, | ||
| juce::UndoManager * | ) |
References rescaleValues().
| void engine::AutomationCurve::addToValues | ( | float | valueDelta, |
| TimeRange | , | ||
| juce::Range< float > | valueRange, | ||
| juce::UndoManager * | ) |
References addToValues().
| int engine::AutomationCurve::movePoint | ( | AutomatableParameter & | , |
| int | index, | ||
| TimePosition | , | ||
| float | newValue, | ||
| bool | removeInterveningPoints, | ||
| juce::UndoManager * | ) |
References movePoint().
| void engine::AutomationCurve::simplify | ( | TimeRange | , |
| double | minTimeDifference, | ||
| float | minValueDifference, | ||
| juce::UndoManager * | ) |
References simplify().
| void engine::AutomationCurve::setPointPosition | ( | int | index, |
| EditPosition | , | ||
| juce::UndoManager * | ) |
References AutomationCurve(), and setPointPosition().
Referenced by setPointPosition().
| juce::CachedValue<AtomicWrapper<bool> > engine::AutomationCurve::bypass |
If set to true, this curve is disabled, having no effect on the AutomatableParameter.
| Edit& engine::AutomationCurve::edit |
| const TimeBase engine::AutomationCurve::timeBase |
| juce::ValueTree engine::AutomationCurve::parentState |
| juce::ValueTree engine::AutomationCurve::state |
Referenced by AutomationCurve().