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

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

Represents a number of bars and then beats in that bar. More...

#include "tracktion_Tempo.h"

Public Member Functions

double getTotalBars () const
 Returns the number bars elapsed.
 
int getWholeBeats () const
 Returns the number of whole beats.
 
BeatDuration getFractionalBeats () const
 Returns the number of fractional beats.
 

Public Attributes

int bars
 The number of whole bars.
 
BeatDuration beats
 The number of beats in the current bar.
 
int numerator
 The number of beats in the current bar.
 

Detailed Description

Represents a number of bars and then beats in that bar.

Definition at line 30 of file tracktion_Tempo.h.

Member Function Documentation

◆ getFractionalBeats()

BeatDuration tracktion::core::tempo::BarsAndBeats::getFractionalBeats ( ) const

Returns the number of fractional beats.

Definition at line 354 of file tracktion_Tempo.h.

◆ getTotalBars()

double tracktion::core::tempo::BarsAndBeats::getTotalBars ( ) const

Returns the number bars elapsed.

Definition at line 352 of file tracktion_Tempo.h.

◆ getWholeBeats()

int tracktion::core::tempo::BarsAndBeats::getWholeBeats ( ) const

Returns the number of whole beats.

Definition at line 353 of file tracktion_Tempo.h.

Member Data Documentation

◆ bars

int tracktion::core::tempo::BarsAndBeats::bars

The number of whole bars.

Definition at line 32 of file tracktion_Tempo.h.

◆ beats

BeatDuration tracktion::core::tempo::BarsAndBeats::beats

The number of beats in the current bar.

Definition at line 33 of file tracktion_Tempo.h.

◆ numerator

int tracktion::core::tempo::BarsAndBeats::numerator

The number of beats in the current bar.

Definition at line 34 of file tracktion_Tempo.h.


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