Tempo Tapper
1.0.0
A simple library to implement a tempo tapper
|
Go to the documentation of this file.
63 printf(
"term_tt: Failed to create a new tempo tapper instance!\n");
76 printw(
"Use the enter key to tap a tempo. Press q to quit.\n");
83 if (input ==
'q' || input ==
'r')
85 else if (input ==
'\r' || input ==
'\n')
88 printw(
"Invalid input!\n");
92 printw(
"Press r to reset, press q to quit.\n");
97 }
while(input !=
'q');
void tt_tap(tempo_tapper *tapper)
"Taps" the tempo tapper
void tt_reset(tempo_tapper *tapper)
Resets the tempo tapper.
tempo_tapper * tt_new()
Creates a new tempo tapper instance.
BPM_t tt_bpm(tempo_tapper *tapper)
Returns the tempo in BPM.
unsigned long tt_period_us(tempo_tapper *tapper)
Returns the period of a tempo in microseconds.
Provides all necessary structs and functions to implement a tempo tapper.