Ardour
8.7-15-gadf511264b
|
#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 438 of file temporal/temporal/tempo.h.
Temporal::TempoMetric::TempoMetric | ( | TempoPoint const & | t, |
MeterPoint const & | m | ||
) |
|
inlinevirtual |
Definition at line 442 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 469 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 459 of file temporal/temporal/tempo.h.
BBT_Argument Temporal::TempoMetric::bbt_at | ( | timepos_t const & | ) | const |
|
inline |
Definition at line 470 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 467 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 462 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 450 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 449 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 447 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.
Definition at line 458 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 497 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 498 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 444 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 471 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 457 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 493 of file temporal/temporal/tempo.h.
superclock_t Temporal::TempoMetric::superclock_at | ( | BBT_Time const & | ) | const |
|
inline |
Definition at line 456 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 476 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 479 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 461 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 463 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 483 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 464 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 446 of file temporal/temporal/tempo.h.
|
inline |
Definition at line 472 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 502 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 503 of file temporal/temporal/tempo.h.
|
protected |
Definition at line 501 of file temporal/temporal/tempo.h.