forked from sacchy777/mid2wav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreq_table.c
262 lines (261 loc) · 5.59 KB
/
freq_table.c
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
/*
* This code is automatically generated by freq_table.rb.
*/
const float freq_table[128] = {
8.175798915643707,
8.661957218027252,
9.177023997418988,
9.722718241315029,
10.300861153527183,
10.913382232281373,
11.562325709738575,
12.249857374429663,
12.978271799373287,
13.75,
14.567617547440307,
15.433853164253883,
16.351597831287414,
17.323914436054505,
18.354047994837977,
19.445436482630058,
20.601722307054366,
21.826764464562746,
23.12465141947715,
24.499714748859326,
25.956543598746574,
27.5,
29.13523509488062,
30.86770632850775,
32.70319566257483,
34.64782887210901,
36.70809598967594,
38.890872965260115,
41.20344461410875,
43.653528929125486,
46.2493028389543,
48.999429497718666,
51.91308719749314,
55.0,
58.27047018976124,
61.7354126570155,
65.40639132514966,
69.29565774421802,
73.41619197935188,
77.78174593052023,
82.4068892282175,
87.30705785825097,
92.4986056779086,
97.99885899543733,
103.82617439498628,
110.0,
116.54094037952248,
123.47082531403103,
130.8127826502993,
138.59131548843604,
146.8323839587038,
155.56349186104046,
164.81377845643496,
174.61411571650194,
184.9972113558172,
195.99771799087463,
207.65234878997256,
220.0,
233.08188075904496,
246.94165062806206,
261.6255653005986,
277.1826309768721,
293.6647679174076,
311.1269837220809,
329.6275569128699,
349.2282314330039,
369.9944227116344,
391.99543598174927,
415.3046975799451,
440.0,
466.1637615180899,
493.8833012561241,
523.2511306011972,
554.3652619537442,
587.3295358348151,
622.2539674441618,
659.2551138257398,
698.4564628660078,
739.9888454232688,
783.9908719634985,
830.6093951598903,
880.0,
932.3275230361799,
987.7666025122483,
1046.5022612023945,
1108.7305239074883,
1174.6590716696303,
1244.5079348883237,
1318.5102276514797,
1396.9129257320155,
1479.9776908465376,
1567.981743926997,
1661.2187903197805,
1760.0,
1864.6550460723597,
1975.533205024496,
2093.004522404789,
2217.4610478149766,
2349.31814333926,
2489.0158697766474,
2637.02045530296,
2793.825851464031,
2959.955381693075,
3135.9634878539946,
3322.437580639561,
3520.0,
3729.3100921447194,
3951.066410048992,
4186.009044809578,
4434.922095629953,
4698.63628667852,
4978.031739553295,
5274.04091060592,
5587.651702928062,
5919.91076338615,
6271.926975707989,
6644.875161279122,
7040.0,
7458.620184289437,
7902.132820097988,
8372.018089619156,
8869.844191259906,
9397.272573357044,
9956.06347910659,
10548.081821211836,
11175.303405856126,
11839.8215267723,
12543.853951415975,
};
const int key_C0 = 0;
const int key_Cp0 = 1;
const int key_D0 = 2;
const int key_Dp0 = 3;
const int key_E0 = 4;
const int key_F0 = 5;
const int key_Fp0 = 6;
const int key_G0 = 7;
const int key_Gp0 = 8;
const int key_A0 = 9;
const int key_Ap0 = 10;
const int key_B0 = 11;
const int key_C1 = 12;
const int key_Cp1 = 13;
const int key_D1 = 14;
const int key_Dp1 = 15;
const int key_E1 = 16;
const int key_F1 = 17;
const int key_Fp1 = 18;
const int key_G1 = 19;
const int key_Gp1 = 20;
const int key_A1 = 21;
const int key_Ap1 = 22;
const int key_B1 = 23;
const int key_C2 = 24;
const int key_Cp2 = 25;
const int key_D2 = 26;
const int key_Dp2 = 27;
const int key_E2 = 28;
const int key_F2 = 29;
const int key_Fp2 = 30;
const int key_G2 = 31;
const int key_Gp2 = 32;
const int key_A2 = 33;
const int key_Ap2 = 34;
const int key_B2 = 35;
const int key_C3 = 36;
const int key_Cp3 = 37;
const int key_D3 = 38;
const int key_Dp3 = 39;
const int key_E3 = 40;
const int key_F3 = 41;
const int key_Fp3 = 42;
const int key_G3 = 43;
const int key_Gp3 = 44;
const int key_A3 = 45;
const int key_Ap3 = 46;
const int key_B3 = 47;
const int key_C4 = 48;
const int key_Cp4 = 49;
const int key_D4 = 50;
const int key_Dp4 = 51;
const int key_E4 = 52;
const int key_F4 = 53;
const int key_Fp4 = 54;
const int key_G4 = 55;
const int key_Gp4 = 56;
const int key_A4 = 57;
const int key_Ap4 = 58;
const int key_B4 = 59;
const int key_C5 = 60;
const int key_Cp5 = 61;
const int key_D5 = 62;
const int key_Dp5 = 63;
const int key_E5 = 64;
const int key_F5 = 65;
const int key_Fp5 = 66;
const int key_G5 = 67;
const int key_Gp5 = 68;
const int key_A5 = 69;
const int key_Ap5 = 70;
const int key_B5 = 71;
const int key_C6 = 72;
const int key_Cp6 = 73;
const int key_D6 = 74;
const int key_Dp6 = 75;
const int key_E6 = 76;
const int key_F6 = 77;
const int key_Fp6 = 78;
const int key_G6 = 79;
const int key_Gp6 = 80;
const int key_A6 = 81;
const int key_Ap6 = 82;
const int key_B6 = 83;
const int key_C7 = 84;
const int key_Cp7 = 85;
const int key_D7 = 86;
const int key_Dp7 = 87;
const int key_E7 = 88;
const int key_F7 = 89;
const int key_Fp7 = 90;
const int key_G7 = 91;
const int key_Gp7 = 92;
const int key_A7 = 93;
const int key_Ap7 = 94;
const int key_B7 = 95;
const int key_C8 = 96;
const int key_Cp8 = 97;
const int key_D8 = 98;
const int key_Dp8 = 99;
const int key_E8 = 100;
const int key_F8 = 101;
const int key_Fp8 = 102;
const int key_G8 = 103;
const int key_Gp8 = 104;
const int key_A8 = 105;
const int key_Ap8 = 106;
const int key_B8 = 107;
const int key_C9 = 108;
const int key_Cp9 = 109;
const int key_D9 = 110;
const int key_Dp9 = 111;
const int key_E9 = 112;
const int key_F9 = 113;
const int key_Fp9 = 114;
const int key_G9 = 115;
const int key_Gp9 = 116;
const int key_A9 = 117;
const int key_Ap9 = 118;
const int key_B9 = 119;
const int key_C10 = 120;
const int key_Cp10 = 121;
const int key_D10 = 122;
const int key_Dp10 = 123;
const int key_E10 = 124;
const int key_F10 = 125;
const int key_Fp10 = 126;
const int key_G10 = 127;