|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
Public Types | |
| using | Ptr = juce::ReferenceCountedObjectPtr< MidiCompManager > |
Public Types inherited from tracktion::engine::CompManager | |
| using | Ptr = juce::ReferenceCountedObjectPtr< CompManager > |
Public Member Functions | |
| MidiCompManager (MidiClip &) | |
| void | initialise () override |
| MidiList * | getSequenceLooped (int index) |
| HashCode | getBaseTakeHash (int takeIndex) const override |
| double | getTakeLength (int takeIndex) const override |
| double | getOffset () const override |
| double | getLoopLength () const override |
| bool | getAutoTempo () override |
| double | getSourceTempo () override |
| juce::String | getWarning () override |
| float | getRenderProgress () const override |
| void | discardCachedData () override |
| void | triggerCompRender () override |
| Triggers the render of the comp. | |
| void | flattenTake (int takeIndex, bool deleteSourceFiles) override |
| Should flatten the comp and remove all other takes. | |
| juce::ValueTree | addNewComp () override |
| Adds a new comp to the end of the takes list optionally making it active. | |
Public Member Functions inherited from tracktion::engine::CompManager | |
| CompManager (Clip &, const juce::ValueTree &) | |
| Creates a CompManager for a given clip. | |
| ~CompManager () override | |
| Destructor. | |
| virtual juce::ValueTree | pasteComp (const juce::ValueTree &) |
| Pastes an existing comp to this manager and returns the newly added tree. | |
| Clip & | getClip () const noexcept |
| virtual void | setStripToUpdate (juce::Component *) |
| Sets a component to be updated during render processes. | |
| bool | shouldDisplayWarning () const noexcept |
| Returns true if the source should display a warning about using multi-tempo changes. | |
| juce::ValueTree | getSection (int takeIndex, int sectionIndex) const |
| Returns the section at the given index of a given take. | |
| juce::ValueTree | findSectionAtTime (double time) |
| Returns either the section for the current comp at a given time or if a whole take is being used the take. | |
| int | findSectionWithEndTime (juce::Range< double > range, int takeIndex, bool &timeFoundAtStartOfSection) const |
| Returns the index of the section whose end lies within the given time range. | |
| juce::Range< double > | getSectionTimes (const juce::ValueTree &) const |
| Returns the time range a given section occupies for a given take. | |
| juce::ValueTree | getTakesTree () |
| void | setActiveTakeIndex (int index) |
| Sets the active take index. | |
| int | getActiveTakeIndex () const |
| Returns the active take index. | |
| juce::ValueTree | getActiveTakeTree () const |
| Returns the active take tree. | |
| int | getNumTakes () const |
| Returns the number of takes that are not comps. | |
| int | getNumComps () const |
| Returns the number of comps that are comps. | |
| int | getTotalNumTakes () const |
| Returns the total number of takes including comp takes. | |
| bool | isTakeComp (int takeIndex) const |
| Returns true if the given take at an index is a comp. | |
| bool | isTakeComp (const juce::ValueTree &takeTree) const |
| Returns true if the given take is a comp. | |
| bool | isCurrentTakeComp () const |
| Returns true if the current take is a comp. | |
| juce::String | getTakeName (int index) const |
| Returns the name of a take. | |
| double | getMaxCompLength () const |
| Returns the maximum length that a comp can be. | |
| juce::Range< double > | getCompRange () const |
| Returns the time range available for comping i.e. | |
| double | getSpeedRatio () const |
| Returns the effective speed ratio used for displaying waveforms. | |
| double | getSourceTimeMultiplier () const |
| Returns the current time multiplier in use by the source, either the speed ratio or auto tempo ratio. | |
| HashCode | getTakeHash (int takeIndex) const |
| Returns a hash code representing a take. | |
| void | changeSectionIndexAtTime (double time, int takeIndex) |
| Changes the index of the active comp's section at a given time. | |
| void | removeSectionIndexAtTime (double time, int takeIndex) |
| Removes a section from the comp at the given time if the section is at the given take index. | |
| void | moveSectionEndTime (juce::ValueTree §ion, double newTime) |
| Moves a section's end time to the new time specified. | |
| void | moveSection (juce::ValueTree §ion, double timeDelta) |
| Moves a section by the specified time delta also moving the previous section's end time by the same ammount. | |
| void | moveSectionToEndAt (juce::ValueTree §ion, double newEndTime) |
| Moves a section to an absolute end time also moving the previous section's end time by the same ammount. | |
| juce::ValueTree | addSection (int takeIndex, double endTime) |
| Adds a new section at a given time and returns the index of it. | |
| void | removeSection (const juce::ValueTree §ionToRemove) |
| Removes a section from the active comp if it is within range. | |
| juce::ValueTree | splitSectionAtTime (double time) |
| Find the current section at the given time and splits it in two ready for a new comp section. | |
| void | removeSectionsWithinRange (juce::Range< double > timeRange, const juce::ValueTree §ionToKeep) |
| Removes all sections which lie within the given time range. | |
Public Member Functions inherited from juce::SingleThreadedReferenceCountedObject | |
| void | incReferenceCount () noexcept |
| void | decReferenceCount () noexcept |
| bool | decReferenceCountWithoutDeleting () noexcept |
| int | getReferenceCount () const noexcept |
Additional Inherited Members | |
Protected Member Functions inherited from tracktion::engine::CompManager | |
| juce::UndoManager * | getUndoManager () const |
| void | keepSectionsSortedAndInRange () |
| juce::ValueTree | getNewCompTree () const |
Protected Member Functions inherited from juce::SingleThreadedReferenceCountedObject | |
| SingleThreadedReferenceCountedObject (const SingleThreadedReferenceCountedObject &) | |
| SingleThreadedReferenceCountedObject (SingleThreadedReferenceCountedObject &&) | |
| SingleThreadedReferenceCountedObject & | operator= (const SingleThreadedReferenceCountedObject &) |
| SingleThreadedReferenceCountedObject & | operator= (SingleThreadedReferenceCountedObject &&) |
Protected Attributes inherited from tracktion::engine::CompManager | |
| juce::ValueTree | takesTree |
| int | lastRenderedTake |
| HashCode | lastHash |
| double | maxCompLength |
| double | effectiveTimeMultiplier |
| double | lastOffset |
| double | lastTimeRatio |
Definition at line 316 of file tracktion_CompManager.h.
Definition at line 319 of file tracktion_CompManager.h.
| tracktion::engine::MidiCompManager::MidiCompManager | ( | MidiClip & | owner | ) |
Definition at line 1284 of file tracktion_CompManager.cpp.
|
override |
Definition at line 1295 of file tracktion_CompManager.cpp.
|
overridevirtual |
Adds a new comp to the end of the takes list optionally making it active.
This is essentially a new take with a new ProjectItemID and a single blank section.
Implements tracktion::engine::CompManager.
Definition at line 1414 of file tracktion_CompManager.cpp.
|
overridevirtual |
Reimplemented from tracktion::engine::CompManager.
Definition at line 1365 of file tracktion_CompManager.cpp.
|
overridevirtual |
Should flatten the comp and remove all other takes.
Implements tracktion::engine::CompManager.
Definition at line 1406 of file tracktion_CompManager.cpp.
|
overridevirtual |
Implements tracktion::engine::CompManager.
Definition at line 332 of file tracktion_CompManager.h.
|
overridevirtual |
Implements tracktion::engine::CompManager.
Definition at line 1347 of file tracktion_CompManager.cpp.
|
overridevirtual |
Implements tracktion::engine::CompManager.
Definition at line 331 of file tracktion_CompManager.h.
|
overridevirtual |
Implements tracktion::engine::CompManager.
Definition at line 330 of file tracktion_CompManager.h.
|
overridevirtual |
Reimplemented from tracktion::engine::CompManager.
Definition at line 335 of file tracktion_CompManager.h.
Definition at line 1330 of file tracktion_CompManager.cpp.
|
overridevirtual |
Implements tracktion::engine::CompManager.
Definition at line 333 of file tracktion_CompManager.h.
Implements tracktion::engine::CompManager.
Definition at line 1354 of file tracktion_CompManager.cpp.
|
overridevirtual |
Reimplemented from tracktion::engine::CompManager.
Definition at line 334 of file tracktion_CompManager.h.
|
overridevirtual |
Reimplemented from tracktion::engine::CompManager.
Definition at line 1297 of file tracktion_CompManager.cpp.
|
overridevirtual |
Triggers the render of the comp.
Call this when you change the comp in some way.
Implements tracktion::engine::CompManager.
Definition at line 1370 of file tracktion_CompManager.cpp.