Ardour
9.0-pre0-822-g12e3bc5c20
|
#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 442 of file temporal/temporal/tempo.h.
Temporal::TempoMetric::TempoMetric | ( | TempoPoint const & | t, |
MeterPoint const & | m | ||
) |
|
inlinevirtual |
Definition at line 446 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 473 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 463 of file temporal/temporal/tempo.h.
BBT_Argument Temporal::TempoMetric::bbt_at | ( | timepos_t const & | ) | const |
|
inline |
Definition at line 474 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 471 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 466 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 454 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 453 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 451 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 470 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 472 of file temporal/temporal/tempo.h.
Definition at line 462 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 503 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 504 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 448 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 475 of file temporal/temporal/tempo.h.
Definition at line 478 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 476 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 461 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 499 of file temporal/temporal/tempo.h.
superclock_t Temporal::TempoMetric::superclock_at | ( | BBT_Time const & | ) | const |
|
inline |
Definition at line 460 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 482 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 485 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 465 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 467 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 489 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 468 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.
|
protected |
Definition at line 508 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 509 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 507 of file temporal/temporal/tempo.h.