![]() |
Ardour
9.0-pre0-1598-ga83c83aef6
|
#include <tempo.h>
Protected Attributes | |
TempoPoint const * | _tempo |
MeterPoint const * | _meter |
superclock_t | _reftime |
Helper class to perform computations that require both Tempo and Meter at a given point in time.
It may seem nicer to make this IS-A TempoPoint and IS-A MeterPoint. Doing so runs into multiple inheritance of Point, plus the major semantic issue that pairing a tempo and a meter does in fact allow for two positions, not one. That means we have to provide accessors to the TempoPoint and MeterPoint and thus it may as well be HAS-A rather than IS-A.
This object should always be short lived. It holds references to a TempoPoint and a MeterPoint that are not lifetime-managed. It's just a convenience object, in essence, to avoid having to replicate the computation code that requires both tempo and meter information every place it is used.
Definition at line 443 of file temporal/temporal/tempo.h.
Temporal::TempoMetric::TempoMetric | ( | TempoPoint const & | t, |
MeterPoint const & | m | ||
) |
|
inlinevirtual |
Definition at line 447 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 474 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 464 of file temporal/temporal/tempo.h.
BBT_Argument Temporal::TempoMetric::bbt_at | ( | timepos_t const & | ) | const |
|
inline |
Definition at line 475 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 472 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 467 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 455 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 454 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 452 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 471 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 473 of file temporal/temporal/tempo.h.
Definition at line 463 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 504 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 505 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 449 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 476 of file temporal/temporal/tempo.h.
Definition at line 479 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 477 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 462 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 500 of file temporal/temporal/tempo.h.
superclock_t Temporal::TempoMetric::superclock_at | ( | BBT_Time const & | ) | const |
|
inline |
Definition at line 461 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 483 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 486 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 466 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 468 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 490 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 469 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 451 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 478 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 509 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 510 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 508 of file temporal/temporal/tempo.h.