Loading...
Searching...
No Matches
mtk::midi_clock::tap_tempo Struct Reference

Detailed Description

Tap tempo: the average interval of up to 32 consecutive taps. A tap more than 3 s after the previous one starts a new series.

Public Member Functions

void tap (int64_t now) noexcept
 
void reset () noexcept
 
int count () const noexcept
 
int64_t last () const noexcept
 
double interval_ns () const noexcept
 Average interval between the taps of the series, 0 with less than 2 taps.
 
double tempo () const noexcept
 Tempo of the series in BPM, 0 with less than 2 taps.
 

Static Public Attributes

static constexpr int max_taps = 32
 
static constexpr int64_t timeout_ns = 3'000'000'000
 

The documentation for this struct was generated from the following file: