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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_TempoTrack.h
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
18class TempoTrack : public Track
19{
20public:
23
25 ~TempoTrack() override;
26
28
30 bool isTempoTrack() const override;
32 juce::String getName() const override;
35
37 int getNumTrackItems() const override;
39 TrackItem* getTrackItem (int idx) const override;
41 int indexOfTrackItem (TrackItem*) const override;
47 bool canContainPlugin (Plugin*) const override;
48
51
52private:
53 juce::Array<TrackItem*> buildTrackItemList() const;
54
56};
57
58}} // namespace tracktion { inline namespace engine
The Tracktion Edit class!
A track to represent the "global" items such as tempo, key changes etc.
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.
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.
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].
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
Represents a duration in real-life time.
Represents a position in real-life time.