tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
tracktion::engine::ClipTrack Class Reference
Inheritance diagram for tracktion::engine::ClipTrack:
tracktion::engine::Track tracktion::engine::ClipOwner tracktion::engine::EditItem tracktion::engine::Selectable juce::ReferenceCountedObject juce::ValueTree::Listener juce::AsyncUpdater tracktion::engine::ArrangerTrack tracktion::engine::AudioTrack tracktion::engine::ChordTrack tracktion::engine::MarkerTrack

Classes

struct  CollectionClipList
 

Public Types

using Ptr = juce::ReferenceCountedObjectPtr< ClipTrack >
 
- Public Types inherited from tracktion::engine::Track
enum  FreezeType { groupFreeze , individualFreeze , anyFreeze }
 Determines the type of freeze. More...
 
enum  MuteAndSoloLightState {
  soloLit , soloFlashing , soloIsolate , muteLit ,
  muteFlashing
}
 Determines the status of the mute and solo indicators. More...
 
using Ptr = juce::ReferenceCountedObjectPtr< Track >
 
using Array = juce::ReferenceCountedArray< Track >
 
- Public Types inherited from tracktion::engine::Selectable
using WeakRef = juce::WeakReference< Selectable >
 

Public Member Functions

 ClipTrack (Edit &, const juce::ValueTree &, bool hasModifierList)
 
void initialise () override
 Initialises the Track.
 
void flushStateToValueTree () override
 Flushes all plugin states on the track to the state object.
 
ClipfindClipForID (EditItemID) const override
 Returns a clip one with a matching ID can be found on this Track.
 
CollectionClipgetCollectionClip (int index) const noexcept
 
CollectionClipgetCollectionClip (Clip *) const
 
int getNumCollectionClips () const noexcept
 
int indexOfCollectionClip (CollectionClip *) const
 
int getIndexOfNextCollectionClipAt (TimePosition)
 
CollectionClipgetNextCollectionClipAt (TimePosition)
 
bool contains (CollectionClip *) const
 
void addCollectionClip (CollectionClip *)
 
void removeCollectionClip (CollectionClip *)
 
int getNumTrackItems () const override
 Should return the number of TrackItem[s] on this Track.
 
TrackItemgetTrackItem (int idx) const override
 Should return the TrackItem at the given index.
 
int indexOfTrackItem (TrackItem *) const override
 Should return the index of the given TrackItem.
 
int getIndexOfNextTrackItemAt (TimePosition) override
 Should return the index of the TrackItem after this time.
 
TrackItemgetNextTrackItemAt (TimePosition) override
 Should return the TrackItem after this time.
 
void insertSpaceIntoTrack (TimePosition, TimeDuration) override
 inserts space and moves everything up
 
TimeDuration getLength () const
 
TimeDuration getLengthIncludingInputTracks () const
 
TimeRange getTotalRange () const
 
bool addClip (const Clip::Ptr &)
 
ClipinsertClipWithState (juce::ValueTree)
 
ClipinsertClipWithState (const juce::ValueTree &stateToUse, const juce::String &name, TrackItem::Type type, ClipPosition position, bool deleteExistingClips, bool allowSpottingAdjustment)
 
ClipinsertNewClip (TrackItem::Type, TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
ClipinsertNewClip (TrackItem::Type, const juce::String &name, TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
ClipinsertNewClip (TrackItem::Type, const juce::String &name, ClipPosition position, SelectionManager *selectionManagerToSelectWith)
 
juce::ReferenceCountedObjectPtr< WaveAudioClipinsertWaveClip (const juce::String &name, const juce::File &sourceFile, ClipPosition position, bool deleteExistingClips)
 
juce::ReferenceCountedObjectPtr< WaveAudioClipinsertWaveClip (const juce::String &name, ProjectItemID sourceID, ClipPosition position, bool deleteExistingClips)
 
juce::ReferenceCountedObjectPtr< MidiClipinsertMIDIClip (TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
juce::ReferenceCountedObjectPtr< MidiClipinsertMIDIClip (const juce::String &name, TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
juce::ReferenceCountedObjectPtr< EditClipinsertEditClip (TimeRange position, ProjectItemID sourceID)
 
void deleteRegion (TimeRange, SelectionManager *)
 
void deleteRegionOfClip (Clip::Ptr, TimeRange, SelectionManager *)
 
ClipsplitClip (Clip &, TimePosition)
 breaks a clip into 2 bits
 
void splitAt (TimePosition)
 split all clips at this time
 
TimePosition getNextTimeOfInterest (TimePosition afterThisTime)
 finds the next cut point
 
TimePosition getPreviousTimeOfInterest (TimePosition beforeThisTime)
 
bool containsPlugin (const Plugin *) const override
 Tests whether this Track or a clip on it contains the given plugin.
 
Plugin::Array getAllPlugins () const override
 Returns all pugins on this Track.
 
void sendMirrorUpdateToAllPlugins (Plugin &) const override
 Sends a message to all plugins that the given plugin has changed.
 
bool areAnyClipsUsingFile (const AudioFile &)
 
bool containsAnyMIDIClips () const
 
juce::ValueTreegetClipOwnerState () override
 Must return the state of this ClipOwner.
 
EditItemID getClipOwnerID () override
 Must return the ID of this ClipOwner.
 
SelectablegetClipOwnerSelectable () override
 Must return the selectable if this ClipOwner is one.
 
EditgetClipOwnerEdit () override
 Must return the Edit this ClipOwner belongs to.
 
void clipCreated (Clip &) override
 Called when a clip is created which could be during Edit load.
 
void clipAddedOrRemoved () override
 Called when a clip is added or removed.
 
void clipOrderChanged () override
 Called when clips have moved times so that their order has changed.
 
void clipPositionChanged () override
 Called when a clip start or end position has changed.
 
- Public Member Functions inherited from tracktion::engine::Track
 Track (Edit &, const juce::ValueTree &, bool hasModifierList)
 Creates a track with a given state.
 
 ~Track () override
 Destructor.
 
void refreshCurrentAutoParam ()
 Updates the current parameter bases on the set IDs.
 
juce::String getName () const override
 Returns the name of the Track.
 
void setName (const juce::String &)
 Sets the name of the Track.
 
void resetName ()
 Sets the name of the Track to an empty string.
 
virtual void sanityCheckName ()
 Sub-classes can impliment this to avoid certain characters being used in a name.
 
virtual bool isAudioTrack () const
 Returns true if this is an AudioTrack.
 
virtual bool isAutomationTrack () const
 Returns true if this is an AutomationTrack.
 
virtual bool isFolderTrack () const
 Returns true if this is a FolderTrack.
 
virtual bool isMarkerTrack () const
 Returns true if this is a MarkerTrack.
 
virtual bool isTempoTrack () const
 Returns true if this is a TempoTrack.
 
virtual bool isChordTrack () const
 Returns true if this is a ChordTrack.
 
virtual bool isArrangerTrack () const
 Returns true if this is an ArrangerTrack.
 
virtual bool isMasterTrack () const
 Returns true if this is a MasterTrack.
 
bool canContainMarkers () const
 Returns true if this Track can contain MarkerClip[s].
 
bool canContainMIDI () const
 Returns true if this Track can contain MidiClip[s].
 
bool canContainAudio () const
 Returns true if this Track can contain WaveAudioClip[s].
 
bool canContainEditClips () const
 Returns true if this Track can contain EditClip[s].
 
bool canContainPlugins () const
 Returns true if this Track can contain Plugin[s].
 
bool isMovable () const
 Returns true if this Track is movable.
 
bool acceptsInput () const
 Returns true if this track can have inputs assigned to it.
 
bool createsOutput () const
 Returns true if this track creates audible output.
 
bool wantsAutomation () const
 Returns true if this track can show automation.
 
virtual bool canContainPlugin (Plugin *) const =0
 Returns true if this track can contain a specific Plugin.
 
virtual bool isFrozen (FreezeType) const
 Returns true if this track is frozen using the given type.
 
virtual void setFrozen (bool, FreezeType)
 Attempts to freeze or unfreeze the track using a given FreezeType.
 
bool isHidden () const
 Returns true if this track should be hidden from view.
 
void setHidden (bool h)
 Sets whether this track should be hidden from view.
 
bool isProcessing (bool includeParents) const
 Returns true if this track should be included in playback.
 
void setProcessing (bool p)
 Sets whether this track should be included in playback.
 
virtual bool processAudioNodesWhileMuted () const
 Subclasses can override this to ensure track contents are still played even when the track is muted.
 
virtual juce::Array< Track * > getInputTracks () const
 Should return any tracks which feed into this track.
 
juce::Array< Track * > getAllSubTracks (bool recursive) const
 Returns all nested tracks.
 
juce::Array< AudioTrack * > getAllAudioSubTracks (bool recursive) const
 Returns all nested AudioTrack[s].
 
TrackListgetSubTrackList () const
 Returns the TrackList if this Track has any sub-tracks.
 
bool hasSubTracks () const
 Returns true if this track has any subtracks.
 
TrackgetSiblingTrack (int delta, bool keepWithinSameParent) const
 Returns a sibling Track to this one.
 
juce::ValueTree getParentTrackTree () const
 Returns the state of the parent Track.
 
TrackgetParentTrack () const
 Returns the parent Track if this is a nested track.
 
FolderTrackgetParentFolderTrack () const
 Returns the parent FolderTrack if this is nested in one.
 
bool isAChildOf (const Track &possibleParent) const
 Tests whether this is a child of a given Track.
 
bool isPartOfSubmix () const
 Tests whether this nested within a submix FolderTrack.
 
int getIndexInEditTrackList () const
 Returns the index of this track in a flat list of tracks contained in an Edit.
 
int getTrackDepth () const
 Returns the number of parents within which this track is nested.
 
virtual bool isMuted (bool) const
 Returns true if this track is muted.
 
virtual bool isSolo (bool) const
 Returns true if this track is soloed.
 
virtual bool isSoloIsolate (bool) const
 Returns true if this track is solo isolated.
 
virtual void setMute (bool)
 Subclasses should implement this to mute themselves.
 
virtual void setSolo (bool)
 Subclasses should implement this to solo themselves.
 
virtual void setSoloIsolate (bool)
 Subclasses should implement this to solo isolate themselves.
 
MuteAndSoloLightState getMuteAndSoloLightState () const
 Returns the mute a solo status.
 
bool shouldBePlayed () const noexcept
 Tests whether this track should be audible in the playback graph i.e.
 
void updateAudibility (bool areAnyTracksSolo)
 Updates the audibility state of the Track.
 
juce::Array< AutomatableParameter * > getAllAutomatableParams () const
 Returns all the parameters for this track's Plugin[s] and Modifier[s].
 
void visitAllAutomatableParams (const std::function< void(AutomatableParameter &)> &) const
 Visits all the parameters for this track's Plugin[s] and Modifier[s].
 
AutomatableParametergetCurrentlyShownAutoParam () const noexcept
 Returns the parameter whos curve should be shown on this Track.
 
void setCurrentlyShownAutoParam (const AutomatableParameter::Ptr &)
 Sets a parameter to display on this Track.
 
void hideAutomatableParametersForSource (EditItemID pluginOrParameterID)
 Hides a shown parameter if it matches the given ID.
 
bool hasFreezePointPlugin () const
 Tests whether this Track contains a FreezePointPlugin.
 
juce::Array< AutomatableEditItem * > getAllAutomatableEditItems () const
 Returns all AutomatableEditItem[s] on this Track.
 
void flipAllPluginsEnablement ()
 Toggles the Plugin::isEnabled state for all Plugin[s] on this Track.
 
ModifierListgetModifierList () const
 Returns the ModifierList for this track, if it has one.
 
void setColour (juce::Colour newColour)
 Sets a colour for this track to use.
 
juce::Colour getColour () const
 Returns the the of this.
 
bool canShowImage () const
 Tests whether this Track can show an image.
 
void setTrackImage (const juce::String &idOrData)
 Sets some image data to use.
 
juce::String getTrackImage () const
 Returns previously set image data.
 
bool imageHasChanged ()
 Tests and resets a flag internally kept when the image changes.
 
void setTags (const juce::StringArray &)
 Sets an array of Strings to use as tags.
 
juce::String getTags () const
 Returns the tags as a pipe-separated single String.
 
const juce::StringArraygetTagsArray () const noexcept
 Returns the array of tags.
 
- Public Member Functions inherited from tracktion::engine::EditItem
 EditItem (EditItemID, Edit &)
 
- Public Member Functions inherited from tracktion::engine::Selectable
virtual juce::String getSelectableDescription ()=0
 Subclasses must return a description of what they are.
 
virtual void selectionStatusChanged (bool isNowSelected)
 Can be overridden to tell this object that it has just been selected or deselected.
 
virtual void changed ()
 This should be called to send a change notification to any SelectableListeners that are registered with this object.
 
virtual void selectableAboutToBeDeleted ()
 Called just before the selectable is about to be deleted so any subclasses should still be valid at this point.
 
void addListener (SelectableListener *)
 
void removeListener (SelectableListener *)
 
void addSelectableListener (SelectableListener *)
 
void removeSelectableListener (SelectableListener *)
 
void cancelAnyPendingUpdates ()
 If changed() has been called, this will cancel any pending async change notificaions.
 
void deselect ()
 
void propertiesChanged ()
 
void notifyListenersOfDeletion ()
 
WeakRef getWeakRef ()
 
- Public Member Functions inherited from juce::ReferenceCountedObject
void incReferenceCount () noexcept
 
void decReferenceCount () noexcept
 
bool decReferenceCountWithoutDeleting () noexcept
 
int getReferenceCount () const noexcept
 
- Public Member Functions inherited from tracktion::engine::ClipOwner
 ClipOwner ()
 Constructs an empty ClipOwner.
 
virtual ~ClipOwner ()
 Destructor.
 
const juce::Array< Clip * > & getClips () const
 Returns the clips this owner contains.
 

Protected Member Functions

juce::Array< TimePositionfindAllTimesOfInterest ()
 
void refreshTrackItems () const
 
- Protected Member Functions inherited from tracktion::engine::Track
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 handleAsyncUpdate () override
 
virtual bool isTrackAudible (bool areAnyTracksSolo) const
 Returns whether this Track should be audible.
 
- Protected Member Functions inherited from juce::ReferenceCountedObject
 ReferenceCountedObject (const ReferenceCountedObject &) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&) noexcept
 
void resetReferenceCount () noexcept
 
- Protected Member Functions inherited from juce::ValueTree::Listener
virtual void valueTreeRedirected (ValueTree &treeWhichHasBeenChanged)
 
- Protected Member Functions inherited from juce::AsyncUpdater
void triggerAsyncUpdate ()
 
void cancelPendingUpdate () noexcept
 
void handleUpdateNowIfNeeded ()
 
bool isUpdatePending () const noexcept
 
- Protected Member Functions inherited from tracktion::engine::ClipOwner
void initialiseClipOwner (Edit &, juce::ValueTree clipParentState)
 Must be called once from the subclass constructor to init the clip owner.
 

Protected Attributes

std::unique_ptr< CollectionClipListcollectionClipList
 
bool trackItemsDirty
 
juce::Array< TrackItem * > trackItems
 

Friends

class Clip
 
struct CollectionClipList
 

Additional Inherited Members

- 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.
 
- Public Attributes inherited from tracktion::engine::Track
juce::ValueTree state
 The state of this Track.
 
PluginList pluginList
 The Track's PluginList.
 
- Public Attributes inherited from tracktion::engine::EditItem
Editedit
 
const EditItemID itemID
 Every EditItem has an ID which is unique within the edit.
 
- Public Attributes inherited from tracktion::engine::Selectable
WeakRef::Master masterReference
 
- Static Public Attributes inherited from tracktion::engine::Track
static const int minTrackHeightForDetail
 The minimim height to show track contents at.
 
static const int trackHeightForEditor
 The height at which inline editors should be shown.
 
static const int frozenTrackHeight
 The height to show group frozen tracks.
 

Detailed Description

Definition at line 15 of file tracktion_ClipTrack.h.

Member Typedef Documentation

◆ Ptr

Definition at line 22 of file tracktion_ClipTrack.h.

Constructor & Destructor Documentation

◆ ClipTrack()

tracktion::engine::ClipTrack::ClipTrack ( Edit ed,
const juce::ValueTree v,
bool  hasModifierList 
)

Definition at line 160 of file tracktion_ClipTrack.cpp.

◆ ~ClipTrack()

tracktion::engine::ClipTrack::~ClipTrack ( )
override

Definition at line 166 of file tracktion_ClipTrack.cpp.

Member Function Documentation

◆ addClip()

bool tracktion::engine::ClipTrack::addClip ( const Clip::Ptr clip)

Definition at line 314 of file tracktion_ClipTrack.cpp.

◆ addCollectionClip()

void tracktion::engine::ClipTrack::addCollectionClip ( CollectionClip cc)

Definition at line 339 of file tracktion_ClipTrack.cpp.

◆ areAnyClipsUsingFile()

bool tracktion::engine::ClipTrack::areAnyClipsUsingFile ( const AudioFile af)

Definition at line 633 of file tracktion_ClipTrack.cpp.

◆ clipAddedOrRemoved()

void tracktion::engine::ClipTrack::clipAddedOrRemoved ( )
overridevirtual

Called when a clip is added or removed.

This is subtly different to the created/deleted callback as it will only get called whilst the Edit is in normal operation.

Implements tracktion::engine::ClipOwner.

Definition at line 487 of file tracktion_ClipTrack.cpp.

◆ clipCreated()

void tracktion::engine::ClipTrack::clipCreated ( Clip )
overridevirtual

Called when a clip is created which could be during Edit load.

Implements tracktion::engine::ClipOwner.

Definition at line 479 of file tracktion_ClipTrack.cpp.

◆ clipOrderChanged()

void tracktion::engine::ClipTrack::clipOrderChanged ( )
overridevirtual

Called when clips have moved times so that their order has changed.

N.B. This may be asyncronously to their start times changing.

Implements tracktion::engine::ClipOwner.

Definition at line 494 of file tracktion_ClipTrack.cpp.

◆ clipPositionChanged()

void tracktion::engine::ClipTrack::clipPositionChanged ( )
overridevirtual

Called when a clip start or end position has changed.

Implements tracktion::engine::ClipOwner.

Definition at line 501 of file tracktion_ClipTrack.cpp.

◆ contains()

bool tracktion::engine::ClipTrack::contains ( CollectionClip cc) const

Definition at line 272 of file tracktion_ClipTrack.cpp.

◆ containsAnyMIDIClips()

bool tracktion::engine::ClipTrack::containsAnyMIDIClips ( ) const

Definition at line 454 of file tracktion_ClipTrack.cpp.

◆ containsPlugin()

bool tracktion::engine::ClipTrack::containsPlugin ( const Plugin p) const
overridevirtual

Tests whether this Track or a clip on it contains the given plugin.


Reimplemented from tracktion::engine::Track.

Definition at line 596 of file tracktion_ClipTrack.cpp.

◆ deleteRegion()

void tracktion::engine::ClipTrack::deleteRegion ( TimeRange  range,
SelectionManager sm 
)

Definition at line 407 of file tracktion_ClipTrack.cpp.

◆ deleteRegionOfClip()

void tracktion::engine::ClipTrack::deleteRegionOfClip ( Clip::Ptr  c,
TimeRange  range,
SelectionManager sm 
)

Definition at line 416 of file tracktion_ClipTrack.cpp.

◆ findAllTimesOfInterest()

juce::Array< TimePosition > tracktion::engine::ClipTrack::findAllTimesOfInterest ( )
protected

Definition at line 559 of file tracktion_ClipTrack.cpp.

◆ findClipForID()

Clip * tracktion::engine::ClipTrack::findClipForID ( EditItemID  id) const
overridevirtual

Returns a clip one with a matching ID can be found on this Track.

Reimplemented from tracktion::engine::Track.

Definition at line 278 of file tracktion_ClipTrack.cpp.

◆ flushStateToValueTree()

void tracktion::engine::ClipTrack::flushStateToValueTree ( )
overridevirtual

Flushes all plugin states on the track to the state object.

This is usually called automatically when an Edit is saved.

Reimplemented from tracktion::engine::Track.

Definition at line 176 of file tracktion_ClipTrack.cpp.

◆ getAllPlugins()

Plugin::Array tracktion::engine::ClipTrack::getAllPlugins ( ) const
overridevirtual

Returns all pugins on this Track.

Subclasses may implement this to also return Plugin[s] on Clip[s]

Reimplemented from tracktion::engine::Track.

Definition at line 609 of file tracktion_ClipTrack.cpp.

◆ getClipOwnerEdit()

Edit & tracktion::engine::ClipTrack::getClipOwnerEdit ( )
overridevirtual

Must return the Edit this ClipOwner belongs to.

Implements tracktion::engine::ClipOwner.

Definition at line 474 of file tracktion_ClipTrack.cpp.

◆ getClipOwnerID()

EditItemID tracktion::engine::ClipTrack::getClipOwnerID ( )
overridevirtual

Must return the ID of this ClipOwner.

Implements tracktion::engine::ClipOwner.

Definition at line 464 of file tracktion_ClipTrack.cpp.

◆ getClipOwnerSelectable()

Selectable * tracktion::engine::ClipTrack::getClipOwnerSelectable ( )
overridevirtual

Must return the selectable if this ClipOwner is one.

Implements tracktion::engine::ClipOwner.

Definition at line 469 of file tracktion_ClipTrack.cpp.

◆ getClipOwnerState()

juce::ValueTree & tracktion::engine::ClipTrack::getClipOwnerState ( )
overridevirtual

Must return the state of this ClipOwner.

Implements tracktion::engine::ClipOwner.

Definition at line 459 of file tracktion_ClipTrack.cpp.

◆ getCollectionClip() [1/2]

CollectionClip * tracktion::engine::ClipTrack::getCollectionClip ( Clip clip) const

Definition at line 242 of file tracktion_ClipTrack.cpp.

◆ getCollectionClip() [2/2]

CollectionClip * tracktion::engine::ClipTrack::getCollectionClip ( int  index) const
noexcept

Definition at line 237 of file tracktion_ClipTrack.cpp.

◆ getIndexOfNextCollectionClipAt()

int tracktion::engine::ClipTrack::getIndexOfNextCollectionClipAt ( TimePosition  time)

Definition at line 262 of file tracktion_ClipTrack.cpp.

◆ getIndexOfNextTrackItemAt()

int tracktion::engine::ClipTrack::getIndexOfNextTrackItemAt ( TimePosition  )
overridevirtual

Should return the index of the TrackItem after this time.

Reimplemented from tracktion::engine::Track.

Definition at line 224 of file tracktion_ClipTrack.cpp.

◆ getLength()

TimeDuration tracktion::engine::ClipTrack::getLength ( ) const

Definition at line 293 of file tracktion_ClipTrack.cpp.

◆ getLengthIncludingInputTracks()

TimeDuration tracktion::engine::ClipTrack::getLengthIncludingInputTracks ( ) const

Definition at line 298 of file tracktion_ClipTrack.cpp.

◆ getNextCollectionClipAt()

CollectionClip * tracktion::engine::ClipTrack::getNextCollectionClipAt ( TimePosition  time)

Definition at line 267 of file tracktion_ClipTrack.cpp.

◆ getNextTimeOfInterest()

TimePosition tracktion::engine::ClipTrack::getNextTimeOfInterest ( TimePosition  afterThisTime)

finds the next cut point

Definition at line 570 of file tracktion_ClipTrack.cpp.

◆ getNextTrackItemAt()

TrackItem * tracktion::engine::ClipTrack::getNextTrackItemAt ( TimePosition  )
overridevirtual

Should return the TrackItem after this time.

Reimplemented from tracktion::engine::Track.

Definition at line 230 of file tracktion_ClipTrack.cpp.

◆ getNumCollectionClips()

int tracktion::engine::ClipTrack::getNumCollectionClips ( ) const
noexcept

Definition at line 252 of file tracktion_ClipTrack.cpp.

◆ getNumTrackItems()

int tracktion::engine::ClipTrack::getNumTrackItems ( ) const
overridevirtual

Should return the number of TrackItem[s] on this Track.

Reimplemented from tracktion::engine::Track.

Definition at line 206 of file tracktion_ClipTrack.cpp.

◆ getPreviousTimeOfInterest()

TimePosition tracktion::engine::ClipTrack::getPreviousTimeOfInterest ( TimePosition  beforeThisTime)

Definition at line 582 of file tracktion_ClipTrack.cpp.

◆ getTotalRange()

TimeRange tracktion::engine::ClipTrack::getTotalRange ( ) const

Definition at line 309 of file tracktion_ClipTrack.cpp.

◆ getTrackItem()

TrackItem * tracktion::engine::ClipTrack::getTrackItem ( int  ) const
overridevirtual

Should return the TrackItem at the given index.

Reimplemented from tracktion::engine::Track.

Definition at line 212 of file tracktion_ClipTrack.cpp.

◆ indexOfCollectionClip()

int tracktion::engine::ClipTrack::indexOfCollectionClip ( CollectionClip cc) const

Definition at line 257 of file tracktion_ClipTrack.cpp.

◆ indexOfTrackItem()

int tracktion::engine::ClipTrack::indexOfTrackItem ( TrackItem ) const
overridevirtual

Should return the index of the given TrackItem.

Reimplemented from tracktion::engine::Track.

Definition at line 218 of file tracktion_ClipTrack.cpp.

◆ initialise()

void tracktion::engine::ClipTrack::initialise ( )
overridevirtual

Initialises the Track.

You shouldn't need to call this directly, it will be called by the track creation methods.

See also
Edit::insertTrack

Reimplemented from tracktion::engine::Track.

Definition at line 170 of file tracktion_ClipTrack.cpp.

◆ insertClipWithState() [1/2]

Clip * tracktion::engine::ClipTrack::insertClipWithState ( const juce::ValueTree stateToUse,
const juce::String name,
TrackItem::Type  type,
ClipPosition  position,
bool  deleteExistingClips,
bool  allowSpottingAdjustment 
)

Definition at line 362 of file tracktion_ClipTrack.cpp.

◆ insertClipWithState() [2/2]

Clip * tracktion::engine::ClipTrack::insertClipWithState ( juce::ValueTree  clipState)

Definition at line 357 of file tracktion_ClipTrack.cpp.

◆ insertEditClip()

EditClip::Ptr tracktion::engine::ClipTrack::insertEditClip ( TimeRange  position,
ProjectItemID  sourceID 
)

Definition at line 402 of file tracktion_ClipTrack.cpp.

◆ insertMIDIClip() [1/2]

MidiClip::Ptr tracktion::engine::ClipTrack::insertMIDIClip ( const juce::String name,
TimeRange  position,
SelectionManager selectionManagerToSelectWith 
)

Definition at line 381 of file tracktion_ClipTrack.cpp.

◆ insertMIDIClip() [2/2]

MidiClip::Ptr tracktion::engine::ClipTrack::insertMIDIClip ( TimeRange  position,
SelectionManager selectionManagerToSelectWith 
)

Definition at line 397 of file tracktion_ClipTrack.cpp.

◆ insertNewClip() [1/3]

Clip * tracktion::engine::ClipTrack::insertNewClip ( TrackItem::Type  type,
const juce::String name,
ClipPosition  position,
SelectionManager selectionManagerToSelectWith 
)

Definition at line 431 of file tracktion_ClipTrack.cpp.

◆ insertNewClip() [2/3]

Clip * tracktion::engine::ClipTrack::insertNewClip ( TrackItem::Type  type,
const juce::String name,
TimeRange  position,
SelectionManager selectionManagerToSelectWith 
)

Definition at line 426 of file tracktion_ClipTrack.cpp.

◆ insertNewClip() [3/3]

Clip * tracktion::engine::ClipTrack::insertNewClip ( TrackItem::Type  type,
TimeRange  position,
SelectionManager selectionManagerToSelectWith 
)

Definition at line 449 of file tracktion_ClipTrack.cpp.

◆ insertSpaceIntoTrack()

void tracktion::engine::ClipTrack::insertSpaceIntoTrack ( TimePosition  time,
TimeDuration  amountOfSpace 
)
overridevirtual

inserts space and moves everything up

Reimplemented from tracktion::engine::Track.

Definition at line 535 of file tracktion_ClipTrack.cpp.

◆ insertWaveClip() [1/2]

WaveAudioClip::Ptr tracktion::engine::ClipTrack::insertWaveClip ( const juce::String name,
const juce::File sourceFile,
ClipPosition  position,
bool  deleteExistingClips 
)

Definition at line 369 of file tracktion_ClipTrack.cpp.

◆ insertWaveClip() [2/2]

WaveAudioClip::Ptr tracktion::engine::ClipTrack::insertWaveClip ( const juce::String name,
ProjectItemID  sourceID,
ClipPosition  position,
bool  deleteExistingClips 
)

Definition at line 375 of file tracktion_ClipTrack.cpp.

◆ refreshTrackItems()

void tracktion::engine::ClipTrack::refreshTrackItems ( ) const
protected

Definition at line 185 of file tracktion_ClipTrack.cpp.

◆ removeCollectionClip()

void tracktion::engine::ClipTrack::removeCollectionClip ( CollectionClip cc)

Definition at line 351 of file tracktion_ClipTrack.cpp.

◆ sendMirrorUpdateToAllPlugins()

void tracktion::engine::ClipTrack::sendMirrorUpdateToAllPlugins ( Plugin changedPlugin) const
overridevirtual

Sends a message to all plugins that the given plugin has changed.

Reimplemented from tracktion::engine::Track.

Definition at line 625 of file tracktion_ClipTrack.cpp.

◆ splitAt()

void tracktion::engine::ClipTrack::splitAt ( TimePosition  time)

split all clips at this time

Definition at line 530 of file tracktion_ClipTrack.cpp.

◆ splitClip()

Clip * tracktion::engine::ClipTrack::splitClip ( Clip clip,
TimePosition  time 
)

breaks a clip into 2 bits

Definition at line 525 of file tracktion_ClipTrack.cpp.

Friends And Related Symbol Documentation

◆ Clip

friend class Clip
friend

Definition at line 125 of file tracktion_ClipTrack.h.

◆ CollectionClipList

friend struct CollectionClipList
friend

Definition at line 130 of file tracktion_ClipTrack.h.

Member Data Documentation

◆ collectionClipList

std::unique_ptr<CollectionClipList> tracktion::engine::ClipTrack::collectionClipList
protected

Definition at line 131 of file tracktion_ClipTrack.h.

◆ trackItems

juce::Array<TrackItem*> tracktion::engine::ClipTrack::trackItems
mutableprotected

Definition at line 136 of file tracktion_ClipTrack.h.

◆ trackItemsDirty

bool tracktion::engine::ClipTrack::trackItemsDirty
mutableprotected

Definition at line 135 of file tracktion_ClipTrack.h.


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