Ardour  9.0-pre0-582-g084a23a80d
Temporal::Meter Class Reference

#include <tempo.h>

Inheritance diagram for Temporal::Meter:
[legend]

Public Member Functions

 Meter (XMLNode const &)
 
 Meter (int8_t dpb, int8_t nv)
 
 Meter (Meter const &other)
 
virtual ~Meter ()
 
int divisions_per_bar () const
 
int note_value () const
 
int32_t ticks_per_grid () const
 
bool operator== (const Meter &other) const
 
bool operator!= (const Meter &other) const
 
Meteroperator= (Meter const &other)
 
BBT_Time bbt_add (BBT_Time const &bbt, BBT_Offset const &add) const
 
BBT_Time bbt_subtract (BBT_Time const &bbt, BBT_Offset const &sub) const
 
BBT_Time round_to_bar (BBT_Time const &) const
 
BBT_Time round_up_to_bar (BBT_Time const &) const
 
BBT_Time round_up_to_beat_div (BBT_Time const &, int beat_div) const
 
BBT_Time round_up_to_beat (BBT_Time const &bbt) const
 
BBT_Time round_to_beat (BBT_Time const &) const
 
Beats to_quarters (BBT_Offset const &) const
 
XMLNodeget_state () const
 
int set_state (XMLNode const &, int version)
 

Static Public Attributes

static std::string xml_node_name
 

Protected Attributes

int8_t _note_value
 
int8_t _divisions_per_bar
 

Detailed Description

Meter, or time signature (subdivisions per bar, and which note type is a single subdivision).

Definition at line 277 of file temporal/temporal/tempo.h.

Constructor & Destructor Documentation

◆ Meter() [1/3]

Temporal::Meter::Meter ( XMLNode const &  )

◆ Meter() [2/3]

Temporal::Meter::Meter ( int8_t  dpb,
int8_t  nv 
)
inline

Definition at line 283 of file temporal/temporal/tempo.h.

◆ Meter() [3/3]

Temporal::Meter::Meter ( Meter const &  other)
inline

Definition at line 284 of file temporal/temporal/tempo.h.

◆ ~Meter()

virtual Temporal::Meter::~Meter ( )
inlinevirtual

Definition at line 286 of file temporal/temporal/tempo.h.

Member Function Documentation

◆ bbt_add()

BBT_Time Temporal::Meter::bbt_add ( BBT_Time const &  bbt,
BBT_Offset const &  add 
) const

◆ bbt_subtract()

BBT_Time Temporal::Meter::bbt_subtract ( BBT_Time const &  bbt,
BBT_Offset const &  sub 
) const

◆ divisions_per_bar()

int Temporal::Meter::divisions_per_bar ( ) const
inline

Definition at line 288 of file temporal/temporal/tempo.h.

◆ get_state()

XMLNode& Temporal::Meter::get_state ( ) const

◆ note_value()

int Temporal::Meter::note_value ( ) const
inline

Definition at line 289 of file temporal/temporal/tempo.h.

◆ operator!=()

bool Temporal::Meter::operator!= ( const Meter other) const
inline

Definition at line 294 of file temporal/temporal/tempo.h.

◆ operator=()

Meter& Temporal::Meter::operator= ( Meter const &  other)
inline

Definition at line 296 of file temporal/temporal/tempo.h.

◆ operator==()

bool Temporal::Meter::operator== ( const Meter other) const
inline

Definition at line 293 of file temporal/temporal/tempo.h.

◆ round_to_bar()

BBT_Time Temporal::Meter::round_to_bar ( BBT_Time const &  ) const

◆ round_to_beat()

BBT_Time Temporal::Meter::round_to_beat ( BBT_Time const &  ) const

◆ round_up_to_bar()

BBT_Time Temporal::Meter::round_up_to_bar ( BBT_Time const &  ) const

◆ round_up_to_beat()

BBT_Time Temporal::Meter::round_up_to_beat ( BBT_Time const &  bbt) const
inline

Definition at line 309 of file temporal/temporal/tempo.h.

◆ round_up_to_beat_div()

BBT_Time Temporal::Meter::round_up_to_beat_div ( BBT_Time const &  ,
int  beat_div 
) const

◆ set_state()

int Temporal::Meter::set_state ( XMLNode const &  ,
int  version 
)

◆ ticks_per_grid()

int32_t Temporal::Meter::ticks_per_grid ( ) const
inline

Definition at line 291 of file temporal/temporal/tempo.h.

◆ to_quarters()

Beats Temporal::Meter::to_quarters ( BBT_Offset const &  ) const

Member Data Documentation

◆ _divisions_per_bar

int8_t Temporal::Meter::_divisions_per_bar
protected

Definition at line 322 of file temporal/temporal/tempo.h.

◆ _note_value

int8_t Temporal::Meter::_note_value
protected

The type of "note" that a division represents. For example, 4 is a quarter (crotchet) note, 8 is an eighth (quaver) note, etc.

Definition at line 320 of file temporal/temporal/tempo.h.

◆ xml_node_name

std::string Temporal::Meter::xml_node_name
static

Definition at line 280 of file temporal/temporal/tempo.h.


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