11namespace tracktion {
inline namespace engine
21 notifyListenersOfDeletion();
37 return buildTrackItemList()[index];
42 return buildTrackItemList().indexOf (ti);
74 auto t1 = a->getPosition().getStart();
75 auto t2 = b->getPosition().getStart();
80 if (typeid (*a) == typeid (*b))
83 return typeid (*a) == typeid (TimeSigSetting);
void addArray(const Type *elementsToAdd, int numElementsToAdd)
ElementType * begin() noexcept
ElementType * end() noexcept
The Tracktion Edit class!
PitchSequence pitchSequence
The global PitchSequence of this Edit.
TempoSequence tempoSequence
The global TempoSequence of this Edit.
void insertSpaceIntoSequence(TimePosition, TimeDuration amountOfSpace, bool snapToBeat)
Inserts space in to a sequence, shifting all PitchSettings.
void insertSpaceIntoSequence(TimePosition time, TimeDuration amountOfSpaceInSeconds, bool snapToBeat)
Inserts space in to a sequence, shifting TempoSettings and TimeSigs.
const juce::Array< TimeSigSetting * > & getTimeSigs() const
Returns an array of the TimeSigSetting.
int getNumTimeSigs() const
Returns the number of TimeSigSetting[s] in the sequence.
int getNumTrackItems() const override
Should return the number of TrackItem[s] on this Track.
bool isTempoTrack() const override
Returns true if this is a TempoTrack.
TrackItem * getNextTrackItemAt(TimePosition) override
Should return the TrackItem after this time.
void insertSpaceIntoTrack(TimePosition, TimeDuration) override
Should insert empty space in to the track, shuffling down any items after the time.
TrackItem * getTrackItem(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.
juce::String getSelectableDescription() override
Subclasses must return a description of what they are.
~TempoTrack() override
Destructor.
bool canContainPlugin(Plugin *) const override
Returns true if this track can contain a specific Plugin.
int getIndexOfNextTrackItemAt(TimePosition) override
Should return the index of the TrackItem after this time.
TempoTrack(Edit &, const juce::ValueTree &)
Create the TempoTrack for an Edit with a given state.
Base class for EditItems that live in a Track, e.g.
Base class for tracks which contain clips and plugins and can be added to Edit[s].
virtual void insertSpaceIntoTrack(TimePosition, TimeDuration)
Should insert empty space in to the track, shuffling down any items after the time.
#define TRANS(stringLiteral)
int findIndexOfNextItemAt(const ArrayType &items, TimePosition time)
Returns the index of the next item after the given time.
Represents a duration in real-life time.
Represents a position in real-life time.