TracktionEngine
Public Member Functions | List of all members
tracktion::engine::EditTimeRange Struct Reference

Represents a time range in an Edit stored as either time or beats. More...

Public Member Functions

 EditTimeRange (TimeRange)
 Creates an EditTimeRange from a TimeRange. More...
 
 EditTimeRange (BeatRange)
 Creates an EditTimeRange from a BeatRange. More...
 
bool isBeats () const
 Returns true if the time is stored as beats, false if stored as a TimePosition. More...
 

Detailed Description

Represents a time range in an Edit stored as either time or beats.

This is basically a variant to simplify APIs that can accept either time base.

Constructor & Destructor Documentation

◆ EditTimeRange() [1/2]

tracktion::engine::EditTimeRange::EditTimeRange ( TimeRange  r)

Creates an EditTimeRange from a TimeRange.

◆ EditTimeRange() [2/2]

tracktion::engine::EditTimeRange::EditTimeRange ( BeatRange  r)

Creates an EditTimeRange from a BeatRange.

Member Function Documentation

◆ isBeats()

bool tracktion::engine::EditTimeRange::isBeats ( ) const

Returns true if the time is stored as beats, false if stored as a TimePosition.


The documentation for this struct was generated from the following file: