Skip to content

Instantly share code, notes, and snippets.

@aparrish
Created January 8, 2025 20:13
Show Gist options
  • Save aparrish/e03561df9000b983858ae5c29289abed to your computer and use it in GitHub Desktop.
Save aparrish/e03561df9000b983858ae5c29289abed to your computer and use it in GitHub Desktop.
midi notes and closest corresponding tones that the game boy can generate, along with the difference in frequency between the midi note and the actual game boy frequency. more or less the same thing as http://www.devrs.com/gb/files/sndtab.html but in a friendlier format. more info and math on pandocs https://gbdev.io/pandocs/Audio_Registers.html
midi name gb gbhex gbfreq diff
0 C-0 0 0x000 64.00 55.82
1 C#0 0 0x000 64.00 55.34
2 D-0 0 0x000 64.00 54.82
3 D#0 0 0x000 64.00 54.28
4 E-0 0 0x000 64.00 53.70
5 F-0 0 0x000 64.00 53.09
6 F#0 0 0x000 64.00 52.44
7 G-0 0 0x000 64.00 51.75
8 G#0 0 0x000 64.00 51.02
9 A-0 0 0x000 64.00 50.25
10 A#0 0 0x000 64.00 49.43
11 B-0 0 0x000 64.00 48.57
12 C-1 0 0x000 64.00 47.65
13 C#1 0 0x000 64.00 46.68
14 D-1 0 0x000 64.00 45.65
15 D#1 0 0x000 64.00 44.55
16 E-1 0 0x000 64.00 43.40
17 F-1 0 0x000 64.00 42.17
18 F#1 0 0x000 64.00 40.88
19 G-1 0 0x000 64.00 39.50
20 G#1 0 0x000 64.00 38.04
21 A-1 0 0x000 64.00 36.50
22 A#1 0 0x000 64.00 34.86
23 B-1 0 0x000 64.00 33.13
24 C-2 0 0x000 64.00 31.30
25 C#2 0 0x000 64.00 29.35
26 D-2 0 0x000 64.00 27.29
27 D#2 0 0x000 64.00 25.11
28 E-2 0 0x000 64.00 22.80
29 F-2 0 0x000 64.00 20.35
30 F#2 0 0x000 64.00 17.75
31 G-2 0 0x000 64.00 15.00
32 G#2 0 0x000 64.00 12.09
33 A-2 0 0x000 64.00 9.00
34 A#2 0 0x000 64.00 5.73
35 B-2 0 0x000 64.00 2.26
36 C-3 44 0x02c 65.41 0.00
37 C#3 157 0x09d 69.31 0.02
38 D-3 263 0x107 73.43 0.01
39 D#3 363 0x16b 77.79 0.01
40 E-3 457 0x1c9 82.38 0.02
41 F-3 547 0x223 87.32 0.02
42 F#3 631 0x277 92.50 0.00
43 G-3 711 0x2c7 98.03 0.04
44 G#3 786 0x312 103.86 0.03
45 A-3 856 0x358 109.96 0.04
46 A#3 923 0x39b 116.51 0.03
47 B-3 986 0x3da 123.42 0.05
48 C-4 1046 0x416 130.81 0.00
49 C#4 1102 0x44e 138.55 0.04
50 D-4 1155 0x483 146.78 0.06
51 D#4 1205 0x4b5 155.48 0.08
52 E-4 1253 0x4e5 164.87 0.06
53 F-4 1297 0x511 174.53 0.08
54 F#4 1339 0x53b 184.87 0.13
55 G-4 1379 0x563 195.92 0.08
56 G#4 1417 0x589 207.72 0.07
57 A-4 1452 0x5ac 219.92 0.08
58 A#4 1486 0x5ce 233.22 0.14
59 B-4 1517 0x5ed 246.84 0.10
60 C-5 1547 0x60b 261.62 0.00
61 C#5 1575 0x627 277.11 0.07
62 D-5 1602 0x642 293.88 0.22
63 D#5 1627 0x65b 311.33 0.21
64 E-5 1650 0x672 329.33 0.30
65 F-5 1673 0x689 349.53 0.30
66 F#5 1694 0x69e 370.26 0.27
67 G-5 1714 0x6b2 392.43 0.44
68 G#5 1732 0x6c4 414.78 0.52
69 A-5 1750 0x6d6 439.84 0.16
70 A#5 1767 0x6e7 466.45 0.28
71 B-5 1783 0x6f7 494.61 0.73
72 C-6 1798 0x706 524.29 1.04
73 C#6 1812 0x714 555.39 1.02
74 D-6 1825 0x721 587.77 0.44
75 D#6 1837 0x72d 621.19 1.06
76 E-6 1849 0x739 658.65 0.60
77 F-6 1860 0x744 697.19 1.26
78 F#6 1871 0x74f 740.52 0.53
79 G-6 1881 0x759 784.86 0.87
80 G#6 1890 0x762 829.57 1.04
81 A-6 1899 0x76b 879.68 0.32
82 A#6 1907 0x773 929.59 2.74
83 B-6 1915 0x77b 985.50 2.26
84 C-7 1923 0x783 1048.58 2.07
85 C#7 1930 0x78a 1110.78 2.05
86 D-7 1936 0x790 1170.29 4.37
87 D#7 1943 0x797 1248.30 3.80
88 E-7 1949 0x79d 1323.96 5.45
89 F-7 1954 0x7a2 1394.38 2.53
90 F#7 1959 0x7a7 1472.72 7.26
91 G-7 1964 0x7ac 1560.38 7.60
92 G#7 1969 0x7b1 1659.14 2.08
93 A-7 1974 0x7b6 1771.24 11.24
94 A#7 1978 0x7ba 1872.46 7.80
95 B-7 1982 0x7be 1985.94 10.41
96 C-8 1985 0x7c1 2080.51 12.50
97 C#8 1989 0x7c5 2221.56 4.10
98 D-8 1992 0x7c8 2340.57 8.75
99 D#8 1995 0x7cb 2473.06 15.96
100 E-8 1998 0x7ce 2621.44 15.58
101 F-8 2001 0x7d1 2788.77 5.06
102 F#8 2004 0x7d4 2978.91 18.95
103 G-8 2006 0x7d6 3120.76 15.20
104 G#8 2009 0x7d9 3360.82 38.38
105 A-8 2011 0x7db 3542.49 22.49
106 A#8 2013 0x7dd 3744.91 15.60
107 B-8 2015 0x7df 3971.88 20.81
108 C-9 2017 0x7e1 4228.13 42.12
109 C#9 2018 0x7e2 4369.07 65.86
110 D-9 2020 0x7e4 4681.14 17.49
111 D#9 2022 0x7e6 5041.23 63.20
112 E-9 2023 0x7e7 5242.88 31.16
113 F-9 2025 0x7e9 5698.78 111.13
114 F#9 2026 0x7ea 5957.82 37.91
115 G-9 2027 0x7eb 6241.52 30.40
116 G#9 2028 0x7ec 6553.60 91.28
117 A-9 2029 0x7ed 6898.53 141.47
118 A#9 2030 0x7ee 7281.78 176.84
119 B-9 2031 0x7ef 7710.12 192.02
120 C-10 2032 0x7f0 8192.00 180.02
121 C#10 2033 0x7f1 8738.13 131.71
122 D-10 2034 0x7f2 9362.29 34.99
123 D#10 2035 0x7f3 10082.46 126.40
124 E-10 2036 0x7f4 10922.67 374.58
125 F-10 2036 0x7f4 10922.67 252.64
126 F#10 2037 0x7f5 11915.64 75.81
127 G-10 2038 0x7f6 13107.20 563.35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment