tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
tracktion::core::BeatDuration Struct Reference

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 BeatDurationoperator= (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.
 

Detailed Description

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.

Member Function Documentation

◆ fromBeats()

template<typename T >
constexpr BeatDuration tracktion::core::BeatDuration::fromBeats ( durationInBeats)
staticconstexpr

Create a BeatPosition from a number of beats.

Definition at line 700 of file tracktion_Time.h.

◆ inBeats()

constexpr double tracktion::core::BeatDuration::inBeats ( ) const
constexpr

Returns the position as a number of beats.

Definition at line 707 of file tracktion_Time.h.


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