Ardour
9.0-pre0-582-g084a23a80d
|
#include <tempo.h>
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 |
Meter & | operator= (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 |
XMLNode & | get_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 |
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.
Temporal::Meter::Meter | ( | XMLNode const & | ) |
|
inline |
Definition at line 283 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 284 of file temporal/temporal/tempo.h.
|
inlinevirtual |
Definition at line 286 of file temporal/temporal/tempo.h.
BBT_Time Temporal::Meter::bbt_add | ( | BBT_Time const & | bbt, |
BBT_Offset const & | add | ||
) | const |
BBT_Time Temporal::Meter::bbt_subtract | ( | BBT_Time const & | bbt, |
BBT_Offset const & | sub | ||
) | const |
|
inline |
Definition at line 288 of file temporal/temporal/tempo.h.
XMLNode& Temporal::Meter::get_state | ( | ) | const |
|
inline |
Definition at line 289 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 294 of file temporal/temporal/tempo.h.
Definition at line 296 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 293 of file temporal/temporal/tempo.h.
Definition at line 309 of file temporal/temporal/tempo.h.
int Temporal::Meter::set_state | ( | XMLNode const & | , |
int | version | ||
) |
|
inline |
Definition at line 291 of file temporal/temporal/tempo.h.
Beats Temporal::Meter::to_quarters | ( | BBT_Offset const & | ) | const |
|
protected |
Definition at line 322 of file temporal/temporal/tempo.h.
|
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.
|
static |
Definition at line 280 of file temporal/temporal/tempo.h.