TracktionEngine
|
#include <tracktion_ClipEffects.h>
Classes | |
struct | Listener |
struct | RenderInhibitor |
Public Member Functions | |
ClipEffects (const juce::ValueTree &, AudioClipBase &) | |
~ClipEffects () override | |
void | flushStateToValueTree () |
ClipEffect * | getClipEffect (const juce::ValueTree &v) |
HashCode | getHash () const |
Returns the hash for this set of effects. | |
TimePosition | getEffectsStartTime () const |
Returns the start position in the file that the effect should apply to. | |
TimeDuration | getEffectsLength () const |
Returns the length of the effect. | |
TimeRange | getEffectsRange () const |
Returns the range of the file that the effect should apply to. | |
double | getSpeedRatioEstimate () const |
Returns the speed ratio of the clip or an estimate of this if the clip is auto tempo. | |
bool | isUsingFile (const AudioFile &af) |
void | notifyListenersOfRenderCompletion () |
RenderManager::Job::Ptr | createRenderJob (const AudioFile &destFile, const AudioFile &sourceFile) const |
bool | isSuitableType (const juce::ValueTree &v) const override |
ClipEffect * | createNewObject (const juce::ValueTree &v) override |
void | deleteObject (ClipEffect *ce) override |
void | newObjectAdded (ClipEffect *) override |
void | objectRemoved (ClipEffect *) override |
void | objectOrderChanged () override |
void | addListener (Listener *l) |
void | removeListener (Listener *l) |
![]() | |
ValueTreeObjectList (const juce::ValueTree &parentTree) | |
~ValueTreeObjectList () override | |
int | size () const |
bool | isEmpty () const noexcept |
ClipEffect * | operator[] (int idx) const |
ClipEffect * | at (int idx) |
ClipEffect ** | begin () |
ClipEffect *const * | begin () const |
ClipEffect ** | end () |
ClipEffect *const * | end () const |
void | rebuildObjects () |
void | freeObjects () |
void | valueTreeChildAdded (juce::ValueTree &, juce::ValueTree &tree) override |
void | valueTreeChildRemoved (juce::ValueTree &exParent, juce::ValueTree &tree, int) override |
void | valueTreeChildOrderChanged (juce::ValueTree &tree, int, int) override |
void | valueTreePropertyChanged (juce::ValueTree &, const juce::Identifier &) override |
void | valueTreeParentChanged (juce::ValueTree &) override |
void | valueTreeRedirected (juce::ValueTree &) override |
int | compareElements (ClipEffect *first, ClipEffect *second) const |
ValueTreeObjectList (const juce::ValueTree &parentTree) | |
~ValueTreeObjectList () override | |
int | size () const |
bool | isEmpty () const noexcept |
ClipEffect * | operator[] (int idx) const |
ClipEffect * | at (int idx) |
ClipEffect ** | begin () |
ClipEffect *const * | begin () const |
ClipEffect ** | end () |
ClipEffect *const * | end () const |
void | rebuildObjects () |
void | freeObjects () |
void | valueTreeChildAdded (juce::ValueTree &, juce::ValueTree &tree) override |
void | valueTreeChildRemoved (juce::ValueTree &exParent, juce::ValueTree &tree, int) override |
void | valueTreeChildOrderChanged (juce::ValueTree &tree, int, int) override |
void | valueTreePropertyChanged (juce::ValueTree &, const juce::Identifier &) override |
void | valueTreeParentChanged (juce::ValueTree &) override |
void | valueTreeRedirected (juce::ValueTree &) override |
int | compareElements (ClipEffect *first, ClipEffect *second) const |
Static Public Member Functions | |
static juce::ValueTree | create () |
Public Attributes | |
AudioClipBase & | clip |
juce::ValueTree | state |
![]() | |
juce::Array< ClipEffect * > | objects |
juce::DummyCriticalSection | arrayLock |
juce::Array< ClipEffect * > | objects |
juce::DummyCriticalSection | arrayLock |
Additional Inherited Members | |
![]() | |
using | ScopedLockType = typename CriticalSectionType::ScopedLockType |
using | ScopedLockType = typename CriticalSectionType::ScopedLockType |
![]() | |
void | deleteAllObjects () |
bool | isChildTree (juce::ValueTree &v) const |
int | indexOf (const juce::ValueTree &v) const noexcept |
void | sortArray () |
void | deleteAllObjects () |
bool | isChildTree (juce::ValueTree &v) const |
int | indexOf (const juce::ValueTree &v) const noexcept |
void | sortArray () |
![]() | |
juce::ValueTree | parent |
juce::ValueTree | parent |
tracktion::engine::ClipEffects::ClipEffects | ( | const juce::ValueTree & | , |
AudioClipBase & | |||
) |
|
override |
|
static |
void tracktion::engine::ClipEffects::flushStateToValueTree | ( | ) |
ClipEffect * tracktion::engine::ClipEffects::getClipEffect | ( | const juce::ValueTree & | v | ) |
HashCode tracktion::engine::ClipEffects::getHash | ( | ) | const |
Returns the hash for this set of effects.
References tracktion::engine::ValueTreeObjectList< ClipEffect >::objects.
TimePosition tracktion::engine::ClipEffects::getEffectsStartTime | ( | ) | const |
Returns the start position in the file that the effect should apply to.
In practice this is the loop start point.
TimeDuration tracktion::engine::ClipEffects::getEffectsLength | ( | ) | const |
Returns the length of the effect.
This will be the effective length of the source file i.e. taking into account loop length and speed ratio.
TimeRange tracktion::engine::ClipEffects::getEffectsRange | ( | ) | const |
Returns the range of the file that the effect should apply to.
In practice this is the loop start point and loop length.
double tracktion::engine::ClipEffects::getSpeedRatioEstimate | ( | ) | const |
Returns the speed ratio of the clip or an estimate of this if the clip is auto tempo.
Note that because Edits can have multiple tempo changes this will only be an estimate based on the tempo at the start of the clip.
bool tracktion::engine::ClipEffects::isUsingFile | ( | const AudioFile & | af | ) |
void tracktion::engine::ClipEffects::notifyListenersOfRenderCompletion | ( | ) |
RenderManager::Job::Ptr tracktion::engine::ClipEffects::createRenderJob | ( | const AudioFile & | destFile, |
const AudioFile & | sourceFile | ||
) | const |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
void tracktion::engine::ClipEffects::addListener | ( | Listener * | l | ) |
void tracktion::engine::ClipEffects::removeListener | ( | Listener * | l | ) |
AudioClipBase& tracktion::engine::ClipEffects::clip |
juce::ValueTree tracktion::engine::ClipEffects::state |