|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
Represents a duration in beats. More...
#include "tracktion_Time.h"
Public Member Functions | |
| constexpr | BeatDuration ()=default |
| Creates a position at a beat of 0. | |
| constexpr | BeatDuration (const BeatDuration &)=default |
| Creates a copy of another BeatDuration. | |
| constexpr BeatDuration & | operator= (const BeatDuration &)=default |
| Creates a copy of another BeatDuration. | |
| constexpr double | inBeats () const |
| Returns the position as a number of beats. | |
Static Public Member Functions | |
| template<typename T > | |
| static constexpr BeatDuration | fromBeats (T durationInBeats) |
| Create a BeatPosition from a number of beats. | |
Represents a duration in beats.
E.g. The time between two beat positions on a timeline.
The time duration of a beat depends on musical information such as tempo and time signature.
Definition at line 309 of file tracktion_Time.h.
|
staticconstexpr |
Create a BeatPosition from a number of beats.
Definition at line 700 of file tracktion_Time.h.
|
constexpr |
Returns the position as a number of beats.
Definition at line 707 of file tracktion_Time.h.