TracktionEngine
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
tracktion::engine::FadeInOutEffect Struct Reference
Inheritance diagram for tracktion::engine::FadeInOutEffect:

Public Member Functions

 FadeInOutEffect (const juce::ValueTree &, ClipEffects &)
 
void setFadeIn (TimeDuration)
 
void setFadeOut (TimeDuration)
 
juce::ReferenceCountedObjectPtr< ClipEffectRenderJob > createRenderJob (const AudioFile &sourceFile, double sourceLength) override
 Subclasses should return a job that can render the source. More...
 
- Public Member Functions inherited from tracktion::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. More...
 
virtual void propertiesButtonPressed (SelectionManager &)
 
virtual void sourceChanged ()
 Callback to indicate the destination file has changed. More...
 
HashCode getHash () const
 Returns the hash for this effect. More...
 
AudioFile getSourceFile () const
 
AudioFile getDestinationFile () const
 
bool isUsingFile (const AudioFile &) const
 
virtual void flushStateToValueTree ()
 
juce::UndoManager & getUndoManager ()
 
AudioClipBasegetClip ()
 

Public Attributes

juce::CachedValue< TimeDuration > fadeIn
 
juce::CachedValue< TimeDuration > fadeOut
 
juce::CachedValue< AudioFadeCurve::TypefadeInType
 
juce::CachedValue< AudioFadeCurve::TypefadeOutType
 
- Public Attributes inherited from tracktion::engine::ClipEffect
Editedit
 
juce::ValueTree state
 
ClipEffectsclipEffects
 

Protected Member Functions

HashCode getIndividualHash () const override
 
- Protected Member Functions inherited from tracktion::engine::ClipEffect
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
 

Additional Inherited Members

- Public Types inherited from tracktion::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 tracktion::engine::ClipEffect
static juce::ValueTree create (EffectType)
 
static ClipEffectcreate (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 &)
 

Constructor & Destructor Documentation

◆ FadeInOutEffect()

tracktion::engine::FadeInOutEffect::FadeInOutEffect ( const juce::ValueTree &  ,
ClipEffects  
)

Member Function Documentation

◆ setFadeIn()

void tracktion::engine::FadeInOutEffect::setFadeIn ( TimeDuration  )

◆ setFadeOut()

void tracktion::engine::FadeInOutEffect::setFadeOut ( TimeDuration  )

◆ createRenderJob()

juce::ReferenceCountedObjectPtr<ClipEffectRenderJob> tracktion::engine::FadeInOutEffect::createRenderJob ( const AudioFile sourceFile,
double  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 tracktion::engine::ClipEffect.

◆ getIndividualHash()

HashCode tracktion::engine::FadeInOutEffect::getIndividualHash ( ) const
overrideprotectedvirtual

Reimplemented from tracktion::engine::ClipEffect.

Member Data Documentation

◆ fadeIn

juce::CachedValue<TimeDuration> tracktion::engine::FadeInOutEffect::fadeIn

◆ fadeOut

juce::CachedValue<TimeDuration> tracktion::engine::FadeInOutEffect::fadeOut

◆ fadeInType

juce::CachedValue<AudioFadeCurve::Type> tracktion::engine::FadeInOutEffect::fadeInType

◆ fadeOutType

juce::CachedValue<AudioFadeCurve::Type> tracktion::engine::FadeInOutEffect::fadeOutType

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