LMMS
Loading...
Searching...
No Matches
juce::ARAAudioModification Class Reference

#include <juce_ARAModelObjects.h>

Inheritance diagram for juce::ARAAudioModification:
juce::ARAListenableModelClass< ARAAudioModificationListener > juce::ARAObject

Public Types

using PropertiesPtr = ARA::PlugIn::PropertiesPtr<ARA::ARAAudioModificationProperties>
using Listener = ARAAudioModificationListener

Public Member Functions

template<typename AudioSource_t = ARAAudioSource>
AudioSource_t * getAudioSource () const noexcept
template<typename PlaybackRegion_t = ARAPlaybackRegion>
const std::vector< PlaybackRegion_t * > & getPlaybackRegions () const noexcept
size_t getNumChildren () const noexcept override
ARAObjectgetChild (size_t index) override
ARAObjectgetParent () override
void visit (ARAObjectVisitor &visitor) override
void notifyContentChanged (ARAContentUpdateScopes scopeFlags, bool notifyARAHost)
Public Member Functions inherited from juce::ARAListenableModelClass< ARAAudioModificationListener >
 ARAListenableModelClass ()=default
virtual ~ARAListenableModelClass ()=default
void addListener (ARAAudioModificationListener *l)
void removeListener (ARAAudioModificationListener *l)
void notifyListeners (Callback &&callback)
Public Member Functions inherited from juce::ARAObject
virtual ~ARAObject ()=default
template<typename Fn>
void traverse (Fn &&fn)

Detailed Description

Base class representing an ARA audio modification.

@tags{ARA}

Member Typedef Documentation

◆ Listener

using juce::ARAAudioModification::Listener = ARAAudioModificationListener

◆ PropertiesPtr

using juce::ARAAudioModification::PropertiesPtr = ARA::PlugIn::PropertiesPtr<ARA::ARAAudioModificationProperties>

Member Function Documentation

◆ getAudioSource()

template<typename AudioSource_t = ARAAudioSource>
AudioSource_t * juce::ARAAudioModification::getAudioSource ( ) const
inlinenoexcept

Returns the result of ARA::PlugIn::AudioModification::getAudioSource() with the pointer cast to ARAAudioSource*.

If you have overridden ARADocumentControllerSpecialisation::doCreateAudioSource(), then you can use the template parameter to cast the pointers to your subclass of ARAAudioSource.

◆ getChild()

ARAObject * juce::ARAAudioModification::getChild ( size_t index)
overridevirtual

Returns the child object associated with the given index.

The index should be smaller than the value returned by getNumChildren().

Note that the index of a particular object may change when the ARA model graph is edited.

Implements juce::ARAObject.

◆ getNumChildren()

size_t juce::ARAAudioModification::getNumChildren ( ) const
overridevirtualnoexcept

Returns the number of ARA model objects aggregated by this object. Objects that are merely referred to, but not aggregated by the current object are not included in this count, e.g. a referenced RegionSequence does not count as a child of the referring PlaybackRegion.

See the ARA documentation's ARA Model Graph Overview for more details.

Implements juce::ARAObject.

◆ getParent()

ARAObject * juce::ARAAudioModification::getParent ( )
inlineoverridevirtual

Returns the ARA model object that aggregates this object.

Returns nullptr for the ARADocument root object.

Implements juce::ARAObject.

◆ getPlaybackRegions()

template<typename PlaybackRegion_t = ARAPlaybackRegion>
const std::vector< PlaybackRegion_t * > & juce::ARAAudioModification::getPlaybackRegions ( ) const
inlinenoexcept

Returns the result of ARA::PlugIn::AudioModification::getPlaybackRegions() with the pointers within cast to ARAPlaybackRegion*.

If you have overridden ARADocumentControllerSpecialisation::doCreatePlaybackRegion(), then you can use the template parameter to cast the pointers to your subclass of ARAPlaybackRegion.

◆ notifyContentChanged()

void juce::ARAAudioModification::notifyContentChanged ( ARAContentUpdateScopes scopeFlags,
bool notifyARAHost )

Notify the ARA host and any listeners of a content update initiated by the plug-in. This must be called by the plug-in model management code on the message thread whenever updating the internal content representation, such as after the user editing the pitch of a note. Listeners will be notified immediately. If notifyARAHost is true, a notification to the host will be enqueued and sent out the next time it polls for updates. notifyARAHost must be false if the updated content is being restored from an archive.

Parameters
scopeFlagsThe scope of the content update.
notifyARAHostIf true, the ARA host will be notified of the content change.

◆ visit()

void juce::ARAAudioModification::visit ( ARAObjectVisitor & visitor)
inlineoverridevirtual

Allows the retrieval of the concrete type of a model object.

To use this, create a new class derived from ARAObjectVisitor and override its functions depending on which concrete types you are interested in.

Calling this function inside the function passed to ARAObject::traverse() allows you to map the entire ARA model graph.

Implements juce::ARAObject.


The documentation for this class was generated from the following files: