Tempo Tapper
1.0.0
A simple library to implement a tempo tapper
include
tempo_tapper_cpp.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Patrick Pedersen
3
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16
*
17
*/
18
34
#pragma once
35
36
#include "
tempo_tapper.h
"
37
45
class
tempo_tapper_cpp
{
46
private
:
47
tempo_tapper
*_tt;
48
49
public
:
50
tempo_tapper_cpp
();
51
~
tempo_tapper_cpp
();
52
53
bool
is_init
();
54
55
unsigned
long
period_us
();
56
void
tap
();
57
void
reset
();
58
BPM_t
bpm
();
59
};
tempo_tapper_cpp::bpm
BPM_t bpm()
Wraps around tt_bpm()
Definition:
tempo_tapper_cpp.cxx:64
tempo_tapper_cpp::reset
void reset()
Wraps around tt_reset()
Definition:
tempo_tapper_cpp.cxx:59
tempo_tapper_cpp::is_init
bool is_init()
Returns if class has been (successfully) initialized.
Definition:
tempo_tapper_cpp.cxx:44
tempo_tapper_cpp::tap
void tap()
Wraps around tt_tap()
Definition:
tempo_tapper_cpp.cxx:54
tempo_tapper_cpp::tempo_tapper_cpp
tempo_tapper_cpp()
Wraps around tt_new()
Definition:
tempo_tapper_cpp.cxx:34
tempo_tapper_cpp::period_us
unsigned long period_us()
Wraps around tt_period_us()
Definition:
tempo_tapper_cpp.cxx:49
tempo_tapper
Tempo tapper struct.
Definition:
tempo_tapper.h:87
tempo_tapper_cpp
C++ wrapper for the tempo tapper library.
Definition:
tempo_tapper_cpp.h:45
tempo_tapper.h
Provides all necessary structs and functions to implement a tempo tapper.
Generated by
1.8.17