![]() |
Ardour
9.0-pre0-1792-g9dafed2d76
|
#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 444 of file temporal/temporal/tempo.h.
Temporal::TempoMetric::TempoMetric | ( | TempoPoint const & | t, |
MeterPoint const & | m | ||
) |
|
inlinevirtual |
Definition at line 448 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 475 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 465 of file temporal/temporal/tempo.h.
BBT_Argument Temporal::TempoMetric::bbt_at | ( | timepos_t const & | ) | const |
|
inline |
Definition at line 476 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 473 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 468 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 456 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 455 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 453 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 472 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 474 of file temporal/temporal/tempo.h.
Definition at line 464 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 505 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 506 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 450 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 477 of file temporal/temporal/tempo.h.
Definition at line 480 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 478 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 463 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 501 of file temporal/temporal/tempo.h.
superclock_t Temporal::TempoMetric::superclock_at | ( | BBT_Time const & | ) | const |
|
inline |
Definition at line 462 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 484 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 487 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 467 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 469 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 491 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 470 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 452 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 479 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 510 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 511 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 509 of file temporal/temporal/tempo.h.