TracktionEngine
|
A WarpMarker is a point that maps from a linear "source" time to a "warped" time. More...
#include <tracktion_WarpTimeManager.h>
Public Member Functions | |
WarpMarker () noexcept=default | |
Creates an empty WarpMarker. | |
WarpMarker (TimePosition s, TimePosition w) | |
Creates a WarpMarker with a source and warp time. | |
WarpMarker (const juce::ValueTree &v) | |
Loads a WarpMarker from a saved state. | |
void | updateFrom (const juce::ValueTree &v, const juce::Identifier &i) |
Updates this WarpMarker from a ValueTree property. | |
HashCode | getHash () const noexcept |
Returns a hash for this marker. | |
Public Attributes | |
juce::ValueTree | state |
TimePosition | sourceTime |
TimePosition | warpTime |
A WarpMarker is a point that maps from a linear "source" time to a "warped" time.
|
defaultnoexcept |
Creates an empty WarpMarker.
tracktion::engine::WarpMarker::WarpMarker | ( | TimePosition | s, |
TimePosition | w | ||
) |
Creates a WarpMarker with a source and warp time.
tracktion::engine::WarpMarker::WarpMarker | ( | const juce::ValueTree & | v | ) |
Loads a WarpMarker from a saved state.
References updateFrom().
void tracktion::engine::WarpMarker::updateFrom | ( | const juce::ValueTree & | v, |
const juce::Identifier & | i | ||
) |
Updates this WarpMarker from a ValueTree property.
References sourceTime, and warpTime.
Referenced by WarpMarker().
|
noexcept |
Returns a hash for this marker.
juce::ValueTree tracktion::engine::WarpMarker::state |
TimePosition tracktion::engine::WarpMarker::sourceTime |
Referenced by updateFrom().
TimePosition tracktion::engine::WarpMarker::warpTime |
Referenced by updateFrom().