TracktionEngine
Classes | Namespaces | Enumerations | Functions
tracktion_ClipOwner.h File Reference

Classes

class  tracktion::engine::ClipOwner
 Base class for items that can contain clips. More...
 

Namespaces

 tracktion
 
 tracktion::engine
 

Enumerations

enum class  tracktion::engine::DeleteExistingClips { tracktion::engine::no , tracktion::engine::yes }
 Determines behaviour for overwriting clips. More...
 

Functions

Clip * tracktion::engine::findClipForState (ClipOwner &, const juce::ValueTree &)
 Returns a clip with the given state if the ClipOwner contains it. More...
 
Clip * tracktion::engine::findClipForID (ClipOwner &, EditItemID)
 Returns a clip with the given ID if the ClipOwner contains it. More...
 
Clip * tracktion::engine::insertClipWithState (ClipOwner &, juce::ValueTree)
 Inserts a clip with the given state in to the ClipOwner's clip list. More...
 
Clip * tracktion::engine::insertClipWithState (ClipOwner &, const juce::ValueTree &stateToUse, const juce::String &name, TrackItem::Type, ClipPosition, DeleteExistingClips, bool allowSpottingAdjustment)
 Inserts a clip with the given state in to the ClipOwner's clip list. More...
 
Clip * tracktion::engine::insertNewClip (ClipOwner &, TrackItem::Type, TimeRange)
 Inserts a new clip with the given type and a default name. More...
 
Clip * tracktion::engine::insertNewClip (ClipOwner &, TrackItem::Type, const juce::String &name, TimeRange)
 Inserts a new clip with the given type and name. More...
 
Clip * tracktion::engine::insertNewClip (ClipOwner &, TrackItem::Type, const juce::String &name, ClipPosition)
 Inserts a new clip with the given type and name. More...
 
juce::ReferenceCountedObjectPtr< WaveAudioClip > tracktion::engine::insertWaveClip (ClipOwner &, const juce::String &name, const juce::File &sourceFile, ClipPosition, DeleteExistingClips)
 Inserts a new WaveAudioClip into the ClipOwner's clip list. More...
 
juce::ReferenceCountedObjectPtr< WaveAudioClip > tracktion::engine::insertWaveClip (ClipOwner &, const juce::String &name, ProjectItemID sourceID, ClipPosition, DeleteExistingClips)
 Inserts a new WaveAudioClip into the ClipOwner's clip list. More...
 
juce::ReferenceCountedObjectPtr< MidiClip > tracktion::engine::insertMIDIClip (ClipOwner &, const juce::String &name, TimeRange)
 Inserts a new MidiClip into the ClipOwner's clip list. More...
 
juce::ReferenceCountedObjectPtr< MidiClip > tracktion::engine::insertMIDIClip (ClipOwner &, TimeRange)
 Inserts a new MidiClip into the ClipOwner's clip list. More...
 
juce::ReferenceCountedObjectPtr< EditClip > tracktion::engine::insertEditClip (ClipOwner &, TimeRange, ProjectItemID)
 Inserts a new EditClip into the ClipOwner's clip list. More...
 
juce::Array< Clip * > tracktion::engine::deleteRegion (ClipOwner &, TimeRange)
 Removes a region of a ClipOwner and returns any newly created clips. More...
 
juce::Array< Clip * > tracktion::engine::deleteRegion (Clip &, TimeRange)
 Removes a region of a clip and returns any newly created clips. More...
 
juce::Array< Clip * > tracktion::engine::split (ClipOwner &, TimePosition)
 Splits the given clp owner at the time and returns any newly created clips. More...
 
Clip * tracktion::engine::split (Clip &, TimePosition)
 Splits the given clip at the time and returns the newly created clip. More...
 
bool tracktion::engine::containsAnyMIDIClips (const ClipOwner &)
 Returns true if the clip owner contains any MIDI clips. More...
 
template<typename ClipType >
juce::Array< ClipType * > tracktion::engine::getClipsOfType (const ClipOwner &)
 Returns the subclips of the given type. More...
 
template<typename ClipType >
juce::Array< ClipType * > tracktion::engine::getClipsOfTypeRecursive (const ClipOwner &)
 Returns the subclips of the given type, if any clips contain other clips, this will also return those. More...
 
bool tracktion::engine::isMasterTrack (const Track &)
 Returns true if this is a MasterTrack. More...
 
bool tracktion::engine::isTempoTrack (const Track &)
 Returns true if this is a TempoTrack. More...
 
bool tracktion::engine::isAutomationTrack (const Track &)
 Returns true if this is an AutomationTrack. More...
 
bool tracktion::engine::isAudioTrack (const Track &)
 Returns true if this is an AudioTrack. More...
 
bool tracktion::engine::isFolderTrack (const Track &)
 Returns true if this is a FolderTrack. More...
 
bool tracktion::engine::isMarkerTrack (const Track &)
 Returns true if this is a MarkerTrack. More...
 
bool tracktion::engine::isChordTrack (const Track &)
 Returns true if this is a ChordTrack. More...
 
bool tracktion::engine::isArrangerTrack (const Track &)
 Returns true if this is an ArrangerTrack. More...
 
bool tracktion::engine::isAudioTrack (const ClipOwner &)
 Returns true if this is an AudioTrack. More...
 
bool tracktion::engine::isFolderTrack (const ClipOwner &)
 Returns true if this is a FolderTrack. More...
 
bool tracktion::engine::isMarkerTrack (const ClipOwner &)
 Returns true if this is a MarkerTrack. More...
 
bool tracktion::engine::isChordTrack (const ClipOwner &)
 Returns true if this is a ChordTrack. More...
 
bool tracktion::engine::isArrangerTrack (const ClipOwner &)
 Returns true if this is an ArrangerTrack. More...
 
bool tracktion::engine::canContainMIDI (const ClipOwner &)
 Returns true if this Track can contain MidiClip[s]. More...
 
bool tracktion::engine::canContainAudio (const ClipOwner &)
 Returns true if this Track can contain WaveAudioClip[s]. More...
 
bool tracktion::engine::isMovable (const Track &)
 Returns true if this Track is movable. More...
 
bool tracktion::engine::isOnTop (const Track &)
 Returns true if this a global Track and should be on top of others. More...