-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnotes.h
28 lines (24 loc) · 959 Bytes
/
notes.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
#ifndef NOTES_H
#define NOTES_H
#include <Arduino.h>
// enum Note maps absolute note names to MIDI note numbers (middle C4 = 60),
// which range from 0 to 127.
//
// This lets us specify MIDI notes by their name instead of having to refer to a table.
enum Note {
c_1, c_1s, d_1, d_1s, e_1, f_1, f_1s, g_1, g_1s, a_1, a_1s, b_1,
c0, c0s, d0, d0s, e0, f0, f0s, g0, g0s, a0, a0s, b0,
c1, c1s, d1, d1s, e1, f1, f1s, g1, g1s, a1, a1s, b1,
c2, c2s, d2, d2s, e2, f2, f2s, g2, g2s, a2, a2s, b2,
c3, c3s, d3, d3s, e3, f3, f3s, g3, g3s, a3, a3s, b3,
c4, c4s, d4, d4s, e4, f4, f4s, g4, g4s, a4, a4s, b4,
c5, c5s, d5, d5s, e5, f5, f5s, g5, g5s, a5, a5s, b5,
c6, c6s, d6, d6s, e6, f6, f6s, g6, g6s, a6, a6s, b6,
c7, c7s, d7, d7s, e7, f7, f7s, g7, g7s, a7, a7s, b7,
c8, c8s, d8, d8s, e8, f8, f8s, g8, g8s, a8, a8s, b8,
c9, c9s, d9, d9s, e9, f9, f9s, g9
};
extern int use_solfege;
String getNoteNum(int num);
String getLongNoteNum(int num);
#endif