11namespace tracktion {
inline namespace engine
31 return {
toTime (r.getStart(), ts),
toTime (r.getEnd(), ts) };
36 return { range, offset };
41 return { ts.
toTime (range), toDuration (ts.
toTime (toPosition (offset))) };
Holds a list of TempoSetting objects, to form a sequence of tempo changes.
TimePosition toTime(BeatPosition) const
Converts a number of beats a time.
BeatPosition toBeats(TimePosition) const
Converts a time to a number of beats.
BeatPosition toBeats(TimePosition tp, const TempoSequence &ts)
Converts a TimePosition to a BeatPosition given a TempoSequence.
ClipPosition createClipPosition(const TempoSequence &, TimeRange range, TimeDuration offset)
Creates a ClipPosition from either a time or beat range.
TimePosition toTime(BeatPosition bp, const TempoSequence &ts)
Converts a BeatPosition to a TimePosition given a TempoSequence.
Represents a duration in beats.
Represents a position in beats.
Represents a duration in real-life time.
Represents a position in real-life time.
Represents the position of a clip on a timeline.