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

Public Member Functions

 NormaliseEffect (const juce::ValueTree &, ClipEffects &)
 
 ~NormaliseEffect () override
 
juce::ReferenceCountedObjectPtr< ClipEffectRenderJob > createRenderJob (const AudioFile &sourceFile, double sourceLength) override
 Subclasses should return a job that can render the source. More...
 
bool hasProperties () override
 Return true here to show a properties button in the editor and enable the propertiesButtonPressed callback. More...
 
void propertiesButtonPressed (SelectionManager &) override
 
juce::String getSelectableDescription () override
 Subclasses must return a description of what they are. More...
 
- Public Member Functions inherited from tracktion::engine::ClipEffect
virtual void initialise ()
 
 ClipEffect (const juce::ValueTree &, ClipEffects &)
 
EffectType getType () const
 
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 Member Functions inherited from tracktion::engine::Selectable
 Selectable ()
 
virtual ~Selectable ()
 
virtual void selectionStatusChanged (bool isNowSelected)
 Can be overridden to tell this object that it has just been selected or deselected. More...
 
virtual void changed ()
 This should be called to send a change notification to any SelectableListeners that are registered with this object. More...
 
virtual void selectableAboutToBeDeleted ()
 Called just before the selectable is about to be deleted so any subclasses should still be valid at this point. More...
 
void addSelectableListener (SelectableListener *)
 
void removeSelectableListener (SelectableListener *)
 
void cancelAnyPendingUpdates ()
 If changed() has been called, this will cancel any pending async change notificaions. More...
 
void deselect ()
 
void propertiesChanged ()
 
void notifyListenersOfDeletion ()
 
WeakRef getWeakRef ()
 

Public Attributes

juce::CachedValue< double > maxLevelDB
 
- Public Attributes inherited from tracktion::engine::ClipEffect
Editedit
 
juce::ValueTree state
 
ClipEffectsclipEffects
 
- Public Attributes inherited from tracktion::engine::Selectable
WeakRef::Master masterReference
 

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
}
 
- Public Types inherited from tracktion::engine::Selectable
using WeakRef = juce::WeakReference< Selectable >
 
- 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 &)
 
- Static Public Member Functions inherited from tracktion::engine::Selectable
static void initialise ()
 
static bool isSelectableValid (const Selectable *) noexcept
 checks whether this object has been deleted. More...
 
- Protected Member Functions inherited from tracktion::engine::ClipEffect
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
 

Constructor & Destructor Documentation

◆ NormaliseEffect()

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

◆ ~NormaliseEffect()

tracktion::engine::NormaliseEffect::~NormaliseEffect ( )
override

Member Function Documentation

◆ createRenderJob()

juce::ReferenceCountedObjectPtr<ClipEffectRenderJob> tracktion::engine::NormaliseEffect::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.

◆ hasProperties()

bool tracktion::engine::NormaliseEffect::hasProperties ( )
overridevirtual

Return true here to show a properties button in the editor and enable the propertiesButtonPressed callback.

Reimplemented from tracktion::engine::ClipEffect.

◆ propertiesButtonPressed()

void tracktion::engine::NormaliseEffect::propertiesButtonPressed ( SelectionManager )
overridevirtual

Reimplemented from tracktion::engine::ClipEffect.

◆ getSelectableDescription()

juce::String tracktion::engine::NormaliseEffect::getSelectableDescription ( )
overridevirtual

Subclasses must return a description of what they are.

Implements tracktion::engine::Selectable.

Member Data Documentation

◆ maxLevelDB

juce::CachedValue<double> tracktion::engine::NormaliseEffect::maxLevelDB

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