Digigurdy-baz
Loading...
Searching...
No Matches
notes.h
Go to the documentation of this file.
1
#ifndef NOTES_H
2
#define NOTES_H
3
#include <Arduino.h>
4
5
// enum Note maps absolute note names to MIDI note numbers (middle C4 = 60),
6
// which range from 0 to 127.
7
//
8
// This lets us specify MIDI notes by their name instead of having to refer to a table.
9
enum
Note
{
10
c_1
,
c_1s
,
d_1
,
d_1s
,
e_1
,
f_1
,
f_1s
,
g_1
,
g_1s
,
a_1
,
a_1s
,
b_1
,
11
c0
,
c0s
,
d0
,
d0s
,
e0
,
f0
,
f0s
,
g0
,
g0s
,
a0
,
a0s
,
b0
,
12
c1
,
c1s
,
d1
,
d1s
,
e1
,
f1
,
f1s
,
g1
,
g1s
,
a1
,
a1s
,
b1
,
13
c2
,
c2s
,
d2
,
d2s
,
e2
,
f2
,
f2s
,
g2
,
g2s
,
a2
,
a2s
,
b2
,
14
c3
,
c3s
,
d3
,
d3s
,
e3
,
f3
,
f3s
,
g3
,
g3s
,
a3
,
a3s
,
b3
,
15
c4
,
c4s
,
d4
,
d4s
,
e4
,
f4
,
f4s
,
g4
,
g4s
,
a4
,
a4s
,
b4
,
16
c5
,
c5s
,
d5
,
d5s
,
e5
,
f5
,
f5s
,
g5
,
g5s
,
a5
,
a5s
,
b5
,
17
c6
,
c6s
,
d6
,
d6s
,
e6
,
f6
,
f6s
,
g6
,
g6s
,
a6
,
a6s
,
b6
,
18
c7
,
c7s
,
d7
,
d7s
,
e7
,
f7
,
f7s
,
g7
,
g7s
,
a7
,
a7s
,
b7
,
19
c8
,
c8s
,
d8
,
d8s
,
e8
,
f8
,
f8s
,
g8
,
g8s
,
a8
,
a8s
,
b8
,
20
c9
,
c9s
,
d9
,
d9s
,
e9
,
f9
,
f9s
,
g9
21
};
22
23
extern
int
use_solfege
;
24
25
String
getNoteNum
(
int
num);
26
String
getLongNoteNum
(
int
num);
27
28
#endif
getLongNoteNum
String getLongNoteNum(int num)
Returns the longer printed version of the given MIDI note.
Definition:
notes.cpp:110
Note
Note
Definition:
notes.h:9
a1s
@ a1s
Definition:
notes.h:12
g0
@ g0
Definition:
notes.h:11
g7
@ g7
Definition:
notes.h:18
b1
@ b1
Definition:
notes.h:12
f8s
@ f8s
Definition:
notes.h:19
g4
@ g4
Definition:
notes.h:15
d4
@ d4
Definition:
notes.h:15
d7
@ d7
Definition:
notes.h:18
c5
@ c5
Definition:
notes.h:16
d8
@ d8
Definition:
notes.h:19
g9
@ g9
Definition:
notes.h:20
c2s
@ c2s
Definition:
notes.h:13
f9
@ f9
Definition:
notes.h:20
f2
@ f2
Definition:
notes.h:13
f1s
@ f1s
Definition:
notes.h:12
a_1
@ a_1
Definition:
notes.h:10
f0s
@ f0s
Definition:
notes.h:11
a2
@ a2
Definition:
notes.h:13
f4s
@ f4s
Definition:
notes.h:15
f8
@ f8
Definition:
notes.h:19
e8
@ e8
Definition:
notes.h:19
c8
@ c8
Definition:
notes.h:19
b8
@ b8
Definition:
notes.h:19
d8s
@ d8s
Definition:
notes.h:19
a6
@ a6
Definition:
notes.h:17
g6s
@ g6s
Definition:
notes.h:17
d_1s
@ d_1s
Definition:
notes.h:10
a1
@ a1
Definition:
notes.h:12
d3
@ d3
Definition:
notes.h:14
c_1
@ c_1
Definition:
notes.h:10
f6s
@ f6s
Definition:
notes.h:17
a0s
@ a0s
Definition:
notes.h:11
d7s
@ d7s
Definition:
notes.h:18
c9
@ c9
Definition:
notes.h:20
d3s
@ d3s
Definition:
notes.h:14
c0
@ c0
Definition:
notes.h:11
g1
@ g1
Definition:
notes.h:12
e9
@ e9
Definition:
notes.h:20
d9
@ d9
Definition:
notes.h:20
d4s
@ d4s
Definition:
notes.h:15
c_1s
@ c_1s
Definition:
notes.h:10
g0s
@ g0s
Definition:
notes.h:11
d2s
@ d2s
Definition:
notes.h:13
c6s
@ c6s
Definition:
notes.h:17
b_1
@ b_1
Definition:
notes.h:10
a8s
@ a8s
Definition:
notes.h:19
c7s
@ c7s
Definition:
notes.h:18
f_1s
@ f_1s
Definition:
notes.h:10
a6s
@ a6s
Definition:
notes.h:17
f6
@ f6
Definition:
notes.h:17
g_1s
@ g_1s
Definition:
notes.h:10
g3s
@ g3s
Definition:
notes.h:14
b4
@ b4
Definition:
notes.h:15
a7s
@ a7s
Definition:
notes.h:18
g_1
@ g_1
Definition:
notes.h:10
d5s
@ d5s
Definition:
notes.h:16
d5
@ d5
Definition:
notes.h:16
a3
@ a3
Definition:
notes.h:14
a7
@ a7
Definition:
notes.h:18
d0s
@ d0s
Definition:
notes.h:11
f_1
@ f_1
Definition:
notes.h:10
d_1
@ d_1
Definition:
notes.h:10
c3s
@ c3s
Definition:
notes.h:14
c1
@ c1
Definition:
notes.h:12
e0
@ e0
Definition:
notes.h:11
a3s
@ a3s
Definition:
notes.h:14
f0
@ f0
Definition:
notes.h:11
f1
@ f1
Definition:
notes.h:12
e1
@ e1
Definition:
notes.h:12
g1s
@ g1s
Definition:
notes.h:12
a5
@ a5
Definition:
notes.h:16
d2
@ d2
Definition:
notes.h:13
a5s
@ a5s
Definition:
notes.h:16
f4
@ f4
Definition:
notes.h:15
e7
@ e7
Definition:
notes.h:18
f3
@ f3
Definition:
notes.h:14
c8s
@ c8s
Definition:
notes.h:19
c1s
@ c1s
Definition:
notes.h:12
g2s
@ g2s
Definition:
notes.h:13
g5
@ g5
Definition:
notes.h:16
g8
@ g8
Definition:
notes.h:19
f2s
@ f2s
Definition:
notes.h:13
a8
@ a8
Definition:
notes.h:19
c4
@ c4
Definition:
notes.h:15
c5s
@ c5s
Definition:
notes.h:16
d0
@ d0
Definition:
notes.h:11
g5s
@ g5s
Definition:
notes.h:16
e5
@ e5
Definition:
notes.h:16
a4
@ a4
Definition:
notes.h:15
a_1s
@ a_1s
Definition:
notes.h:10
f5s
@ f5s
Definition:
notes.h:16
c0s
@ c0s
Definition:
notes.h:11
c3
@ c3
Definition:
notes.h:14
b6
@ b6
Definition:
notes.h:17
e4
@ e4
Definition:
notes.h:15
d6
@ d6
Definition:
notes.h:17
c2
@ c2
Definition:
notes.h:13
b3
@ b3
Definition:
notes.h:14
c4s
@ c4s
Definition:
notes.h:15
b7
@ b7
Definition:
notes.h:18
f3s
@ f3s
Definition:
notes.h:14
g3
@ g3
Definition:
notes.h:14
g6
@ g6
Definition:
notes.h:17
c7
@ c7
Definition:
notes.h:18
c9s
@ c9s
Definition:
notes.h:20
b2
@ b2
Definition:
notes.h:13
g8s
@ g8s
Definition:
notes.h:19
g7s
@ g7s
Definition:
notes.h:18
e6
@ e6
Definition:
notes.h:17
a2s
@ a2s
Definition:
notes.h:13
f7s
@ f7s
Definition:
notes.h:18
e3
@ e3
Definition:
notes.h:14
f7
@ f7
Definition:
notes.h:18
d1s
@ d1s
Definition:
notes.h:12
e2
@ e2
Definition:
notes.h:13
g2
@ g2
Definition:
notes.h:13
e_1
@ e_1
Definition:
notes.h:10
a0
@ a0
Definition:
notes.h:11
f9s
@ f9s
Definition:
notes.h:20
d1
@ d1
Definition:
notes.h:12
b5
@ b5
Definition:
notes.h:16
c6
@ c6
Definition:
notes.h:17
f5
@ f5
Definition:
notes.h:16
b0
@ b0
Definition:
notes.h:11
d9s
@ d9s
Definition:
notes.h:20
d6s
@ d6s
Definition:
notes.h:17
g4s
@ g4s
Definition:
notes.h:15
a4s
@ a4s
Definition:
notes.h:15
getNoteNum
String getNoteNum(int num)
Returns the printed version of the given MIDI note.
Definition:
notes.cpp:96
use_solfege
int use_solfege
Definition:
digigurdy-baz.ino:146
Generated by
1.9.5