-
Notifications
You must be signed in to change notification settings - Fork 63
/
musical_notes.h
77 lines (68 loc) · 1.19 KB
/
musical_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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#pragma once
// Note durations in milliseconds
#define _N01 1600
#define _N02 800
#define _N04 400
#define _N08 200
#define _N16 100
// Tone frequencies
#define _C3 130
#define _Db3 138
#define _D3 146
#define _Eb3 155
#define _E3 164
#define _F3 174
#define _Gb3 185
#define _G3 196
#define _Ab3 207
#define _A3 220
#define _Bb3 233
#define _B3 246
#define _C4 261
#define _Db4 277
#define _D4 293
#define _Eb4 311
#define _E4 329
#define _F4 349
#define _Gb4 369
#define _G4 392
#define _Ab4 415
#define _A4 440
#define _Bb4 466
#define _B4 493
#define _C5 523
#define _Db5 544
#define _D5 587
#define _Eb5 622
#define _E5 659
#define _F5 698
#define _Gb5 739
#define _G5 783
#define _Ab5 830
#define _A5 880
#define _Bb5 932
#define _B5 987
#define _C6 1046
#define _Db6 1108
#define _D6 1174
#define _Eb6 1244
#define _E6 1318
#define _F6 1396
#define _Gb6 1479
#define _G6 1567
#define _Ab6 1661
#define _A6 1760
#define _Bb6 1864
#define _B6 1975
#define _C7 2093
#define _Db7 2217
#define _D7 2349
#define _Eb7 2489
#define _E7 2637
#define _F7 2794
#define _Gb7 2960
#define _G7 3136
#define _Ab7 3322
#define _A7 3520
#define _Bb7 3729
#define _B7 3951