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

#include <tracktion_ClipEffects.h>

Inheritance diagram for engine::PluginEffect:

Public Member Functions

 PluginEffect (const juce::ValueTree &, ClipEffects &)
juce::ReferenceCountedObjectPtr< ClipEffectRenderJob > createRenderJob (const AudioFile &, TimeDuration sourceLength) override
 Subclasses should return a job that can render the source.
void initialise () override
void flushStateToValueTree () override
bool hasProperties () override
 Return true here to show a properties button in the editor and enable the propertiesButtonPressed callback.
void propertiesButtonPressed (SelectionManager &) override
HashCode getIndividualHash () const override
void valueTreePropertyChanged (juce::ValueTree &, const juce::Identifier &) override
void valueTreeChanged () override
void timerCallback () override
void curveHasChanged (AutomatableParameter &) override
 Called when the automation curve has changed, point time, value or curve.
Public Member Functions inherited from engine::ClipEffect
 ClipEffect (const juce::ValueTree &, ClipEffects &)
EffectType getType () const
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
juce::UndoManager & getUndoManager ()
AudioClipBase & getClip ()
Public Member Functions inherited from engine::AutomatableParameter::Listener
virtual ~Listener ()
virtual void currentValueChanged (AutomatableParameter &)
 Called when the current value of the parameter changed, either from setting the parameter, automation, a macro or modifier.
virtual void parameterChanged (AutomatableParameter &, float)
 Called when the parameter is changed by the plugin or host, not from automation.
virtual void parameterChangeGestureBegin (AutomatableParameter &)
virtual void parameterChangeGestureEnd (AutomatableParameter &)
virtual void recordingStatusChanged (AutomatableParameter &)
 Called when this parameter starts or stops recording.

Public Attributes

Plugin::Ptr plugin
std::unique_ptr< ClipEffects::RenderInhibitor > inhibitor
std::unique_ptr< PluginUnloadInhibitor > pluginUnloadInhibitor
juce::CachedValue< int > currentCurve
juce::CachedValue< juce::int64 > lastHash
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::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

◆ PluginEffect()

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

Member Function Documentation

◆ createRenderJob()

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

◆ initialise()

void engine::PluginEffect::initialise ( )
overridevirtual

Reimplemented from engine::ClipEffect.

References plugin.

◆ flushStateToValueTree()

void engine::PluginEffect::flushStateToValueTree ( )
overridevirtual

Reimplemented from engine::ClipEffect.

◆ hasProperties()

bool engine::PluginEffect::hasProperties ( )
overridevirtual

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

Reimplemented from engine::ClipEffect.

◆ propertiesButtonPressed()

void engine::PluginEffect::propertiesButtonPressed ( SelectionManager & )
overridevirtual

Reimplemented from engine::ClipEffect.

◆ getIndividualHash()

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

Reimplemented from engine::ClipEffect.

◆ valueTreePropertyChanged()

void engine::PluginEffect::valueTreePropertyChanged ( juce::ValueTree & ,
const juce::Identifier &  )
override

◆ valueTreeChanged()

void engine::PluginEffect::valueTreeChanged ( )
overridevirtual

Reimplemented from engine::ClipEffect.

◆ timerCallback()

void engine::PluginEffect::timerCallback ( )
override

◆ curveHasChanged()

void engine::PluginEffect::curveHasChanged ( AutomatableParameter & )
overridevirtual

Called when the automation curve has changed, point time, value or curve.

Implements engine::AutomatableParameter::Listener.

Member Data Documentation

◆ plugin

Plugin::Ptr engine::PluginEffect::plugin

Referenced by initialise().

◆ inhibitor

std::unique_ptr<ClipEffects::RenderInhibitor> engine::PluginEffect::inhibitor

◆ pluginUnloadInhibitor

std::unique_ptr<PluginUnloadInhibitor> engine::PluginEffect::pluginUnloadInhibitor

◆ currentCurve

juce::CachedValue<int> engine::PluginEffect::currentCurve

◆ lastHash

juce::CachedValue<juce::int64> engine::PluginEffect::lastHash
mutable

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