|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
Classes | |
| struct | ClipEffectRenderJob |
Public Types | |
| enum class | EffectType { none , volume , fadeInOut , tapeStartStop , stepVolume , pitchShift , warpTime , normalise , makeMono , reverse , invert , filter , firstEffect , lastEffect } |
Public Member Functions | |
| virtual void | initialise () |
| ClipEffect (const juce::ValueTree &, ClipEffects &) | |
| EffectType | getType () const |
| virtual juce::ReferenceCountedObjectPtr< ClipEffectRenderJob > | createRenderJob (const AudioFile &sourceFile, double sourceLength)=0 |
| Subclasses should return a job that can render the source. | |
| virtual bool | hasProperties () |
| Return true here to show a properties button in the editor and enable the propertiesButtonPressed callback. | |
| virtual void | propertiesButtonPressed (SelectionManager &) |
| virtual void | sourceChanged () |
| Callback to indicate the destination file has changed. | |
| HashCode | getHash () const |
| Returns the hash for this effect. | |
| AudioFile | getSourceFile () const |
| AudioFile | getDestinationFile () const |
| bool | isUsingFile (const AudioFile &) const |
| virtual void | flushStateToValueTree () |
| juce::UndoManager & | getUndoManager () |
| AudioClipBase & | getClip () |
Static Public Member Functions | |
| static juce::ValueTree | create (EffectType) |
| static ClipEffect * | create (const juce::ValueTree &, ClipEffects &) |
| static void | createEffectAndAddToValueTree (Edit &, juce::ValueTree parent, ClipEffect::EffectType, int index) |
| static juce::String | getTypeDisplayName (EffectType) |
| static void | addEffectsToMenu (juce::PopupMenu &) |
Public Attributes | |
| Edit & | edit |
| juce::ValueTree | state |
| ClipEffects & | clipEffects |
Protected Member Functions | |
| virtual HashCode | getIndividualHash () const |
| void | valueTreeChanged () override |
Protected Member Functions inherited from tracktion::engine::ValueTreeAllEventListener | |
| void | valueTreePropertyChanged (juce::ValueTree &, const juce::Identifier &) override |
| void | valueTreeChildAdded (juce::ValueTree &, juce::ValueTree &) override |
| void | valueTreeChildRemoved (juce::ValueTree &, juce::ValueTree &, int) override |
| void | valueTreeChildOrderChanged (juce::ValueTree &, int, int) override |
| void | valueTreeParentChanged (juce::ValueTree &) override |
| void | valueTreeRedirected (juce::ValueTree &) override |
Friends | |
| class | ClipEffects |
Definition at line 17 of file tracktion_ClipEffects.h.
|
strong |
Definition at line 20 of file tracktion_ClipEffects.h.
| tracktion::engine::ClipEffect::ClipEffect | ( | const juce::ValueTree & | v, |
| ClipEffects & | o | ||
| ) |
Definition at line 224 of file tracktion_ClipEffects.cpp.
|
static |
Definition at line 294 of file tracktion_ClipEffects.cpp.
|
static |
Definition at line 1687 of file tracktion_ClipEffects.cpp.
|
static |
Definition at line 230 of file tracktion_ClipEffects.cpp.
|
static |
Definition at line 236 of file tracktion_ClipEffects.cpp.
|
pure virtual |
Subclasses should return a job that can render the source.
N.B. because the sourceFile may not be valid at the time of job creation you should use the sourceLength parameter to determine how to build the render node.
Implemented in tracktion::engine::WarpTimeEffect, tracktion::engine::PluginEffect, tracktion::engine::MakeMonoEffect, tracktion::engine::ReverseEffect, tracktion::engine::InvertEffect, tracktion::engine::VolumeEffect, tracktion::engine::FadeInOutEffect, tracktion::engine::StepVolumeEffect, tracktion::engine::PitchShiftEffect, and tracktion::engine::NormaliseEffect.
|
virtual |
Definition at line 79 of file tracktion_ClipEffects.h.
| AudioClipBase & tracktion::engine::ClipEffect::getClip | ( | ) |
Definition at line 350 of file tracktion_ClipEffects.cpp.
| AudioFile tracktion::engine::ClipEffect::getDestinationFile | ( | ) | const |
Definition at line 342 of file tracktion_ClipEffects.cpp.
| HashCode tracktion::engine::ClipEffect::getHash | ( | ) | const |
Returns the hash for this effect.
N.B. as effects are serial their hash will change if any preceeding effects change.
Definition at line 320 of file tracktion_ClipEffects.cpp.
|
protectedvirtual |
Definition at line 315 of file tracktion_ClipEffects.cpp.
| AudioFile tracktion::engine::ClipEffect::getSourceFile | ( | ) | const |
Definition at line 334 of file tracktion_ClipEffects.cpp.
| ClipEffect::EffectType tracktion::engine::ClipEffect::getType | ( | ) | const |
Definition at line 310 of file tracktion_ClipEffects.cpp.
|
static |
Definition at line 274 of file tracktion_ClipEffects.cpp.
| juce::UndoManager & tracktion::engine::ClipEffect::getUndoManager | ( | ) |
Definition at line 355 of file tracktion_ClipEffects.cpp.
|
virtual |
Return true here to show a properties button in the editor and enable the propertiesButtonPressed callback.
Reimplemented in tracktion::engine::VolumeEffect, tracktion::engine::StepVolumeEffect, tracktion::engine::PitchShiftEffect, tracktion::engine::PluginEffect, tracktion::engine::NormaliseEffect, and tracktion::engine::MakeMonoEffect.
Definition at line 62 of file tracktion_ClipEffects.h.
|
virtual |
Definition at line 44 of file tracktion_ClipEffects.h.
| bool tracktion::engine::ClipEffect::isUsingFile | ( | const AudioFile & | af | ) | const |
Definition at line 360 of file tracktion_ClipEffects.cpp.
|
virtual |
Definition at line 63 of file tracktion_ClipEffects.h.
|
virtual |
Callback to indicate the destination file has changed.
Reimplemented in tracktion::engine::WarpTimeEffect.
Definition at line 66 of file tracktion_ClipEffects.h.
|
overrideprotectedvirtual |
Implements tracktion::engine::ValueTreeAllEventListener.
Definition at line 365 of file tracktion_ClipEffects.cpp.
|
friend |
Definition at line 93 of file tracktion_ClipEffects.h.
| ClipEffects& tracktion::engine::ClipEffect::clipEffects |
Definition at line 86 of file tracktion_ClipEffects.h.
| Edit& tracktion::engine::ClipEffect::edit |
Definition at line 84 of file tracktion_ClipEffects.h.
| juce::ValueTree tracktion::engine::ClipEffect::state |
Definition at line 85 of file tracktion_ClipEffects.h.