|
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) |
| Public Member Functions inherited from engine::ValueTreeObjectList< ClipEffect > | |
| 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 ** | end () |
| 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 |
| Public Attributes inherited from engine::ValueTreeObjectList< ClipEffect > | |
| juce::Array< ClipEffect * > | objects |
| juce::DummyCriticalSection | arrayLock |
Additional Inherited Members | |
| Public Types inherited from engine::ValueTreeObjectList< ClipEffect > | |
| using | ScopedLockType |
| Protected Member Functions inherited from engine::ValueTreeObjectList< ClipEffect > | |
| void | deleteAllObjects () |
| bool | isChildTree (juce::ValueTree &v) const |
| int | indexOf (const juce::ValueTree &v) const noexcept |
| void | sortArray () |
| Protected Attributes inherited from engine::ValueTreeObjectList< ClipEffect > | |
| juce::ValueTree | parent |
| engine::ClipEffects::ClipEffects | ( | const juce::ValueTree & | , |
| AudioClipBase & | ) |
Referenced by engine::ClipEffects::RenderInhibitor::RenderInhibitor().
|
override |
|
static |
| void engine::ClipEffects::flushStateToValueTree | ( | ) |
| ClipEffect * engine::ClipEffects::getClipEffect | ( | const juce::ValueTree & | v | ) |
References ClipEffect, and engine::ValueTreeObjectList< ClipEffect >::objects.
| HashCode engine::ClipEffects::getHash | ( | ) | const |
Returns the hash for this set of effects.
References engine::ValueTreeObjectList< ClipEffect >::objects.
| TimePosition 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 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 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 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 engine::ClipEffects::isUsingFile | ( | const AudioFile & | af | ) |
| void engine::ClipEffects::notifyListenersOfRenderCompletion | ( | ) |
References engine::ClipEffects::Listener::renderComplete().
| RenderManager::Job::Ptr engine::ClipEffects::createRenderJob | ( | const AudioFile & | destFile, |
| const AudioFile & | sourceFile ) const |
|
overridevirtual |
Implements engine::ValueTreeObjectList< ClipEffect >.
|
overridevirtual |
Implements engine::ValueTreeObjectList< ClipEffect >.
References ClipEffect, engine::ClipEffect::create(), and engine::ClipEffects::Listener::effectAdded().
|
overridevirtual |
Implements engine::ValueTreeObjectList< ClipEffect >.
References ClipEffect, and engine::ClipEffects::Listener::effectRemoved().
|
overridevirtual |
Implements engine::ValueTreeObjectList< ClipEffect >.
References ClipEffect.
|
overridevirtual |
Implements engine::ValueTreeObjectList< ClipEffect >.
References ClipEffect.
|
overridevirtual |
Implements engine::ValueTreeObjectList< ClipEffect >.
References engine::ClipEffects::Listener::effectsReordered().
| void engine::ClipEffects::addListener | ( | Listener * | l | ) |
| void engine::ClipEffects::removeListener | ( | Listener * | l | ) |
| AudioClipBase& engine::ClipEffects::clip |
| juce::ValueTree engine::ClipEffects::state |