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.
9enum Note {
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
23extern int use_solfege;
24
25String getNoteNum(int num);
26String getLongNoteNum(int num);
27
28#endif
String getLongNoteNum(int num)
Returns the longer printed version of the given MIDI note.
Definition: notes.cpp:110
Note
Definition: notes.h:9
@ a1s
Definition: notes.h:12
@ g0
Definition: notes.h:11
@ g7
Definition: notes.h:18
@ b1
Definition: notes.h:12
@ f8s
Definition: notes.h:19
@ g4
Definition: notes.h:15
@ d4
Definition: notes.h:15
@ d7
Definition: notes.h:18
@ c5
Definition: notes.h:16
@ d8
Definition: notes.h:19
@ g9
Definition: notes.h:20
@ c2s
Definition: notes.h:13
@ f9
Definition: notes.h:20
@ f2
Definition: notes.h:13
@ f1s
Definition: notes.h:12
@ a_1
Definition: notes.h:10
@ f0s
Definition: notes.h:11
@ a2
Definition: notes.h:13
@ f4s
Definition: notes.h:15
@ f8
Definition: notes.h:19
@ e8
Definition: notes.h:19
@ c8
Definition: notes.h:19
@ b8
Definition: notes.h:19
@ d8s
Definition: notes.h:19
@ a6
Definition: notes.h:17
@ g6s
Definition: notes.h:17
@ d_1s
Definition: notes.h:10
@ a1
Definition: notes.h:12
@ d3
Definition: notes.h:14
@ c_1
Definition: notes.h:10
@ f6s
Definition: notes.h:17
@ a0s
Definition: notes.h:11
@ d7s
Definition: notes.h:18
@ c9
Definition: notes.h:20
@ d3s
Definition: notes.h:14
@ c0
Definition: notes.h:11
@ g1
Definition: notes.h:12
@ e9
Definition: notes.h:20
@ d9
Definition: notes.h:20
@ d4s
Definition: notes.h:15
@ c_1s
Definition: notes.h:10
@ g0s
Definition: notes.h:11
@ d2s
Definition: notes.h:13
@ c6s
Definition: notes.h:17
@ b_1
Definition: notes.h:10
@ a8s
Definition: notes.h:19
@ c7s
Definition: notes.h:18
@ f_1s
Definition: notes.h:10
@ a6s
Definition: notes.h:17
@ f6
Definition: notes.h:17
@ g_1s
Definition: notes.h:10
@ g3s
Definition: notes.h:14
@ b4
Definition: notes.h:15
@ a7s
Definition: notes.h:18
@ g_1
Definition: notes.h:10
@ d5s
Definition: notes.h:16
@ d5
Definition: notes.h:16
@ a3
Definition: notes.h:14
@ a7
Definition: notes.h:18
@ d0s
Definition: notes.h:11
@ f_1
Definition: notes.h:10
@ d_1
Definition: notes.h:10
@ c3s
Definition: notes.h:14
@ c1
Definition: notes.h:12
@ e0
Definition: notes.h:11
@ a3s
Definition: notes.h:14
@ f0
Definition: notes.h:11
@ f1
Definition: notes.h:12
@ e1
Definition: notes.h:12
@ g1s
Definition: notes.h:12
@ a5
Definition: notes.h:16
@ d2
Definition: notes.h:13
@ a5s
Definition: notes.h:16
@ f4
Definition: notes.h:15
@ e7
Definition: notes.h:18
@ f3
Definition: notes.h:14
@ c8s
Definition: notes.h:19
@ c1s
Definition: notes.h:12
@ g2s
Definition: notes.h:13
@ g5
Definition: notes.h:16
@ g8
Definition: notes.h:19
@ f2s
Definition: notes.h:13
@ a8
Definition: notes.h:19
@ c4
Definition: notes.h:15
@ c5s
Definition: notes.h:16
@ d0
Definition: notes.h:11
@ g5s
Definition: notes.h:16
@ e5
Definition: notes.h:16
@ a4
Definition: notes.h:15
@ a_1s
Definition: notes.h:10
@ f5s
Definition: notes.h:16
@ c0s
Definition: notes.h:11
@ c3
Definition: notes.h:14
@ b6
Definition: notes.h:17
@ e4
Definition: notes.h:15
@ d6
Definition: notes.h:17
@ c2
Definition: notes.h:13
@ b3
Definition: notes.h:14
@ c4s
Definition: notes.h:15
@ b7
Definition: notes.h:18
@ f3s
Definition: notes.h:14
@ g3
Definition: notes.h:14
@ g6
Definition: notes.h:17
@ c7
Definition: notes.h:18
@ c9s
Definition: notes.h:20
@ b2
Definition: notes.h:13
@ g8s
Definition: notes.h:19
@ g7s
Definition: notes.h:18
@ e6
Definition: notes.h:17
@ a2s
Definition: notes.h:13
@ f7s
Definition: notes.h:18
@ e3
Definition: notes.h:14
@ f7
Definition: notes.h:18
@ d1s
Definition: notes.h:12
@ e2
Definition: notes.h:13
@ g2
Definition: notes.h:13
@ e_1
Definition: notes.h:10
@ a0
Definition: notes.h:11
@ f9s
Definition: notes.h:20
@ d1
Definition: notes.h:12
@ b5
Definition: notes.h:16
@ c6
Definition: notes.h:17
@ f5
Definition: notes.h:16
@ b0
Definition: notes.h:11
@ d9s
Definition: notes.h:20
@ d6s
Definition: notes.h:17
@ g4s
Definition: notes.h:15
@ a4s
Definition: notes.h:15
String getNoteNum(int num)
Returns the printed version of the given MIDI note.
Definition: notes.cpp:96
int use_solfege
Definition: digigurdy-baz.ino:146