A WarpTimeManager contains a list of WarpMarkers and some source material and maps times from a linear "view" time to a "wapred" source time.
More...
#include <tracktion_WarpTimeManager.h>
A WarpTimeManager contains a list of WarpMarkers and some source material and maps times from a linear "view" time to a "wapred" source time.
Once created this can be used to generate an AudioSegmentList to play the source material back warped.
◆ Ptr
◆ WarpTimeManager() [1/2]
◆ WarpTimeManager() [2/2]
| engine::WarpTimeManager::WarpTimeManager |
( |
Edit & |
, |
|
|
const AudioFile & |
sourceFile, |
|
|
juce::ValueTree |
parentTree |
|
) |
| |
◆ ~WarpTimeManager()
| engine::WarpTimeManager::~WarpTimeManager |
( |
| ) |
|
|
override |
◆ setSourceFile()
| void engine::WarpTimeManager::setSourceFile |
( |
const AudioFile & |
| ) |
|
Sets a source fiel to warp.
◆ getSourceFile()
| AudioFile engine::WarpTimeManager::getSourceFile |
( |
| ) |
const |
Returns the current source file.
◆ getSourceLength()
| TimeDuration engine::WarpTimeManager::getSourceLength |
( |
| ) |
const |
Returns the length of the source file.
◆ isWarpEndMarkerEnabled()
| bool engine::WarpTimeManager::isWarpEndMarkerEnabled |
( |
| ) |
const |
|
noexcept |
Returns true if the end marker is being used as the end of the source material.
- See also
- setWarpEndMarkerTime
◆ areEndMarkersLimited()
| bool engine::WarpTimeManager::areEndMarkersLimited |
( |
| ) |
const |
|
noexcept |
Returns true if the markers are limited to the end of the source length.
- See also
- getSourceLength
◆ getMarkers()
| const juce::Array< WarpMarker * > & engine::WarpTimeManager::getMarkers |
( |
| ) |
const |
Returns a list of the current WarpMarkers.
◆ insertMarker()
| int engine::WarpTimeManager::insertMarker |
( |
WarpMarker |
| ) |
|
◆ removeMarker()
| void engine::WarpTimeManager::removeMarker |
( |
int |
index | ) |
|
◆ removeAllMarkers()
| void engine::WarpTimeManager::removeAllMarkers |
( |
| ) |
|
◆ moveMarker()
| TimePosition engine::WarpTimeManager::moveMarker |
( |
int |
index, |
|
|
TimePosition |
newWarpTime |
|
) |
| |
Moves a WarpMarker at a given index to a new time.
◆ setWarpEndMarkerTime()
| void engine::WarpTimeManager::setWarpEndMarkerTime |
( |
TimePosition |
endTime | ) |
|
Sets the end time of the source material.
Only functional if isWarpEndMarkerEnabled returns true.
◆ getWarpTimeRegions()
| juce::Array< TimeRange > engine::WarpTimeManager::getWarpTimeRegions |
( |
TimeRange |
overallTimeRegion | ) |
const |
Time region can be longer than the clip and the returned array will loop over the clip to match the length.
◆ getTransientTimes()
| std::pair< bool, juce::Array< TimePosition > > engine::WarpTimeManager::getTransientTimes |
( |
| ) |
const |
Returns an array of transient times that have been detected from the source file.
The bool here will be false if the detection job hasn't finished running yet so call it again peridically until it is true.
◆ warpTimeToSourceTime()
| TimePosition engine::WarpTimeManager::warpTimeToSourceTime |
( |
TimePosition |
warpTime | ) |
const |
Converts a warp time (i.e.
a linear time) to the time in the source file after warping has been applied.
◆ sourceTimeToWarpTime()
| TimePosition engine::WarpTimeManager::sourceTimeToWarpTime |
( |
TimePosition |
sourceTime | ) |
const |
Converts a source time (i.e.
time in the file) to a linear time after warping has been applied.
◆ getWarpedStart()
| TimePosition engine::WarpTimeManager::getWarpedStart |
( |
| ) |
const |
Returns the start time of the warped region (can be -ve)
◆ getWarpedEnd()
| TimePosition engine::WarpTimeManager::getWarpedEnd |
( |
| ) |
const |
Returns the endTime of the entire warped region.
◆ getWarpEndMarkerTime()
| TimePosition engine::WarpTimeManager::getWarpEndMarkerTime |
( |
| ) |
const |
Sets position in warped region of the redered file end point.
◆ getHash()
| HashCode engine::WarpTimeManager::getHash |
( |
| ) |
const |
Returns a hash representing this warp list.
◆ editFinishedLoading()
| void engine::WarpTimeManager::editFinishedLoading |
( |
| ) |
|
◆ edit
| Edit& engine::WarpTimeManager::edit |
◆ state
| juce::ValueTree engine::WarpTimeManager::state |
The documentation for this class was generated from the following file: