forked from RyoKosaka/HelloDrum-arduino-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hellodrum.h
47 lines (41 loc) · 1.02 KB
/
hellodrum.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef HelloDrum_h
#define HelloDrum_h
class HelloDrum
{
public:
HelloDrum(int pin1, int pin2);
HelloDrum(int pin1);
void singlePiezo(int sens, int thre1, int thre2, int retri);
//void singlePiezo(int sens, int thre1, int thre2, int retri);
void dualPiezo(int sens, int thre1, int thre2, int retri);
void cymbal3zone(int sens, int thre1, int thre2, int retri);
void cymbal2zone(int sens, int thre1, int thre2, int retri);
void TCRT5000(int sens, int thre1, int thre2);
int velocity;
int pedalCC;
int note;
int exValue;
int exTCRT = 0;
bool hit;
bool openHH;
bool closeHH;
bool hit_rim;
bool hit_edge;
bool hit_cup;
bool choke;
bool moving;
bool flag;
bool pedalVelocityFlag;
bool chokeFlag;
unsigned long time_hit;
unsigned long time_end;
unsigned long time_choke;
unsigned long time_hit_pedal_1;
unsigned long time_hit_pedal_2;
private:
int pin_1;
int pin_2;
int piezoValue;
int sensorValue;
};
#endif