11namespace tracktion {
inline namespace engine
41 default:
return "unknown";
129 return track->itemID;
Base class for objects that live inside an edit - e.g.
The Tracktion Edit class!
Type
Defines the types of item that can live on Track[s].
@ container
An container clip.
@ timeSig
A time signature settings.
@ arranger
An arranger clip.
@ unknown
A placeholder for unknown items.
@ collection
A collection clip.
@ recording
A temporary recording clip.
BeatPosition getStartBeat() const
Returns the start beat in the Edit of this item.
static juce::Identifier clipTypeToXMLType(Type)
Returns an Identifier version of a TrackItem::Type.
virtual Track * getTrack() const =0
Must return the track this item lives on.
BeatDuration getLengthInBeats() const
Returns the duration in beats the of this item.
static TrackItem::Type stringToType(const juce::String &)
Returns the TrackItem::Type of a type string.
TimePosition getTimeOfRelativeBeat(BeatDuration) const
Returns an Edit time point for a given number of beats from the start of this item.
virtual ClipPosition getPosition() const =0
Must return the position of this item.
static TrackItem::Type xmlTagToType(juce::StringRef)
Returns the TrackItem::Type of a type string.
EditItemID getTrackID() const
Returns the ID of the Track this item lives on.
BeatRange getEditBeatRange() const
Returns the beat range of this item.
BeatPosition getEndBeat() const
Returns the end beat in the Edit of this item.
BeatDuration getOffsetInBeats() const
Returns an the offset of this item in beats.
TrackItem(Edit &, EditItemID, Type)
Creates a TrackItem with an ID and type.
static juce::String getSuggestedNameForNewItem(Type)
Returns a text string for a new clip of the given type.
BeatPosition getContentStartBeat() const
Returns the start beat of the content in the Edit of this item.
static const char * typeToString(Type)
Returns the string version of a TrackItem::Type.
BeatPosition getBeatOfRelativeTime(TimeDuration) const
Returns an Edit beat point for a given number of seconds from the start of this item.
#define TRANS(stringLiteral)
Represents a duration in beats.
Represents a position in beats.
Represents a duration in real-life time.
Represents a position in real-life time.
ID for objects of type EditElement - e.g.