TracktionEngine
Loading...
Searching...
No Matches
engine::WarpTimeEffect Struct Reference

#include <tracktion_ClipEffects.h>

Inheritance diagram for engine::WarpTimeEffect:

Public Member Functions

 WarpTimeEffect (const juce::ValueTree &, ClipEffects &)
juce::ReferenceCountedObjectPtr< ClipEffectRenderJob > createRenderJob (const AudioFile &, TimeDuration sourceLength) override
 Subclasses should return a job that can render the source.
HashCode getIndividualHash () const override
void sourceChanged () override
 Callback to indicate the destination file has changed.
void editFinishedLoading ()
Public Member Functions inherited from engine::ClipEffect
virtual void initialise ()
 ClipEffect (const juce::ValueTree &, ClipEffects &)
EffectType getType () const
virtual bool hasProperties ()
 Return true here to show a properties button in the editor and enable the propertiesButtonPressed callback.
virtual void propertiesButtonPressed (SelectionManager &)
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 ()

Public Attributes

WarpTimeManager::Ptr warpTimeManager
std::unique_ptr< Edit::LoadFinishedCallback< WarpTimeEffect > > editLoadedCallback
Public Attributes inherited from engine::ClipEffect
Edit & edit
juce::ValueTree state
ClipEffects & clipEffects

Additional Inherited Members

Public Types inherited from engine::ClipEffect
enum class  EffectType {
  none , volume , fadeInOut , tapeStartStop ,
  stepVolume , pitchShift , warpTime , normalise ,
  makeMono , reverse , invert , filter ,
  firstEffect = volume , lastEffect = filter
}
Static Public Member Functions inherited from engine::ClipEffect
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 &)
Protected Member Functions inherited from engine::ClipEffect
void valueTreeChanged () override
Protected Member Functions inherited from 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

Constructor & Destructor Documentation

◆ WarpTimeEffect()

engine::WarpTimeEffect::WarpTimeEffect ( const juce::ValueTree & ,
ClipEffects &  )

Member Function Documentation

◆ createRenderJob()

juce::ReferenceCountedObjectPtr< ClipEffectRenderJob > engine::WarpTimeEffect::createRenderJob ( const AudioFile & sourceFile,
TimeDuration sourceLength )
overridevirtual

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.

Implements engine::ClipEffect.

◆ getIndividualHash()

HashCode engine::WarpTimeEffect::getIndividualHash ( ) const
overridevirtual

Reimplemented from engine::ClipEffect.

◆ sourceChanged()

void engine::WarpTimeEffect::sourceChanged ( )
overridevirtual

Callback to indicate the destination file has changed.

Reimplemented from engine::ClipEffect.

◆ editFinishedLoading()

void engine::WarpTimeEffect::editFinishedLoading ( )

References WarpTimeEffect().

Member Data Documentation

◆ warpTimeManager

WarpTimeManager::Ptr engine::WarpTimeEffect::warpTimeManager

◆ editLoadedCallback

std::unique_ptr<Edit::LoadFinishedCallback<WarpTimeEffect> > engine::WarpTimeEffect::editLoadedCallback

The documentation for this struct was generated from the following file: