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