JMUSIC.Pitches History

Hide minor edits - Show changes to output

Added lines 1-485:
(:source lang=Java tabwidth=3 -trim :)

1 /*
2
3 <This Java Class is part of the jMusic API version 1.4, February 2003.>
4
5 Copyright (C) 2000 Andrew Sorensen & Andrew Brown
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or any
10 later version.
11
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 */
22
23 package jm.constants;
24
25 /** An interface storing pitch constants.
26 *
27 * @see jm.music.data.Note
28 * @author Andrew Sorensen, Andrew Brown, Andrew Troedson, Adam Kirby
29 */
30 public interface Pitches {
31
32 public static final int
33 G9 = 127,
34 GF9 = 126,
35 FS9 = 126,
36 F9 = 125,
37 FF9 = 124,
38 ES9 = 125,
39 E9 = 124,
40 EF9 = 123,
41 DS9 = 123,
42 D9 = 122,
43 DF9 = 121,
44 CS9 = 121,
45 C9 = 120,
46 CF9 = 119,
47 BS8 = 120,
48 B8 = 119,
49 BF8 = 118,
50 AS8 = 118,
51 A8 = 117,
52 AF8 = 116,
53 GS8 = 116,
54 G8 = 115,
55 GF8 = 114,
56 FS8 = 114,
57 F8 = 113,
58 FF8 = 112,
59 ES8 = 113,
60 E8 = 112,
61 EF8 = 111,
62 DS8 = 111,
63 D8 = 110,
64 DF8 = 109,
65 CS8 = 109,
66 C8 = 108,
67 CF8 = 107,
68 BS7 = 108,
69 B7 = 107,
70 BF7 = 106,
71 AS7 = 106,
72 A7 = 105,
73 AF7 = 104,
74 GS7 = 104,
75 G7 = 103,
76 GF7 = 102,
77 FS7 = 102,
78 F7 = 101,
79 FF7 = 100,
80 ES7 = 101,
81 E7 = 100,
82 EF7 = 99,
83 DS7 = 99,
84 D7 = 98,
85 DF7 = 97,
86 CS7 = 97,
87 C7 = 96,
88 CF7 = 95,
89 BS6 = 96,
90 B6 = 95,
91 BF6 = 94,
92 AS6 = 94,
93 A6 = 93,
94 AF6 = 92,
95 GS6 = 92,
96 G6 = 91,
97 GF6 = 90,
98 FS6 = 90,
99 F6 = 89,
100 FF6 = 88,
101 ES6 = 89,
102 E6 = 88,
103 EF6 = 87,
104 DS6 = 87,
105 D6 = 86,
106 DF6 = 85,
107 CS6 = 85,
108 C6 = 84,
109 CF6 = 83,
110 BS5 = 84,
111 B5 = 83,
112 BF5 = 82,
113 AS5 = 82,
114 A5 = 81,
115 AF5 = 80,
116 GS5 = 80,
117 G5 = 79,
118 GF5 = 78,
119 FS5 = 78,
120 F5 = 77,
121 FF5 = 76,
122 ES5 = 77,
123 E5 = 76,
124 EF5 = 75,
125 DS5 = 75,
126 D5 = 74,
127 DF5 = 73,
128 CS5 = 73,
129 C5 = 72,
130 CF5 = 71,
131 BS4 = 72,
132 B4 = 71,
133 BF4 = 70,
134 AS4 = 70,
135 A4 = 69,
136 AF4 = 68,
137 GS4 = 68,
138 G4 = 67,
139 GF4 = 66,
140 FS4 = 66,
141 F4 = 65,
142 FF4 = 64,
143 ES4 = 65,
144 E4 = 64,
145 EF4 = 63,
146 DS4 = 63,
147 D4 = 62,
148 DF4 = 61,
149 CS4 = 61,
150 C4 = 60,
151 CF4 = 59,
152 BS3 = 60,
153 B3 = 59,
154 BF3 = 58,
155 AS3 = 58,
156 A3 = 57,
157 AF3 = 56,
158 GS3 = 56,
159 G3 = 55,
160 GF3 = 54,
161 FS3 = 54,
162 F3 = 53,
163 FF3 = 52,
164 ES3 = 53,
165 E3 = 52,
166 EF3 = 51,
167 DS3 = 51,
168 D3 = 50,
169 DF3 = 49,
170 CS3 = 49,
171 C3 = 48,
172 CF3 = 47,
173 BS2 = 48,
174 B2 = 47,
175 BF2 = 46,
176 AS2 = 46,
177 A2 = 45,
178 AF2 = 44,
179 GS2 = 44,
180 G2 = 43,
181 GF2 = 42,
182 FS2 = 42,
183 F2 = 41,
184 FF2 = 40,
185 ES2 = 41,
186 E2 = 40,
187 EF2 = 39,
188 DS2 = 39,
189 D2 = 38,
190 DF2 = 37,
191 CS2 = 37,
192 C2 = 36,
193 CF2 = 35,
194 BS1 = 36,
195 B1 = 35,
196 BF1 = 34,
197 AS1 = 34,
198 A1 = 33,
199 AF1 = 32,
200 GS1 = 32,
201 G1 = 31,
202 GF1 = 30,
203 FS1 = 30,
204 F1 = 29,
205 FF1 = 28,
206 ES1 = 29,
207 E1 = 28,
208 EF1 = 27,
209 DS1 = 27,
210 D1 = 26,
211 DF1 = 25,
212 CS1 = 25,
213 C1 = 24,
214 CF1 = 23,
215 BS0 = 24,
216 B0 = 23,
217 BF0 = 22,
218 AS0 = 22,
219 A0 = 21,
220 AF0 = 20,
221 GS0 = 20,
222 G0 = 19,
223 GF0 = 18,
224 FS0 = 18,
225 F0 = 17,
226 FF0 = 16,
227 ES0 = 17,
228 E0 = 16,
229 EF0 = 15,
230 DS0 = 15,
231 D0 = 14,
232 DF0 = 13,
233 CS0 = 13,
234 C0 = 12,
235 CF0 = 11,
236 BSN1 = 12,
237 BN1 = 11,
238 BFN1 = 10,
239 ASN1 = 10,
240 AN1 = 9,
241 AFN1 = 8,
242 GSN1 = 8,
243 GN1 = 7,
244 GFN1 = 6,
245 FSN1 = 6,
246 FN1 = 5,
247 FFN1 = 4,
248 ESN1 = 5,
249 EN1 = 4,
250 EFN1 = 3,
251 DSN1 = 3,
252 DN1 = 2,
253 DFN1 = 1,
254 CSN1 = 1,
255 CN1 = 0,
256 g9 = 127,
257 gf9 = 126,
258 fs9 = 126,
259 f9 = 125,
260 ff9 = 124,
261 es9 = 125,
262 e9 = 124,
263 ef9 = 123,
264 ds9 = 123,
265 d9 = 122,
266 df9 = 121,
267 cs9 = 121,
268 c9 = 120,
269 cf9 = 119,
270 bs8 = 120,
271 b8 = 119,
272 bf8 = 118,
273 as8 = 118,
274 a8 = 117,
275 af8 = 116,
276 gs8 = 116,
277 g8 = 115,
278 gf8 = 114,
279 fs8 = 114,
280 f8 = 113,
281 ff8 = 112,
282 es8 = 113,
283 e8 = 112,
284 ef8 = 111,
285 ds8 = 111,
286 d8 = 110,
287 df8 = 109,
288 cs8 = 109,
289 c8 = 108,
290 cf8 = 107,
291 bs7 = 108,
292 b7 = 107,
293 bf7 = 106,
294 as7 = 106,
295 a7 = 105,
296 af7 = 104,
297 gs7 = 104,
298 g7 = 103,
299 gf7 = 102,
300 fs7 = 102,
301 f7 = 101,
302 ff7 = 100,
303 es7 = 101,
304 e7 = 100,
305 ef7 = 99,
306 ds7 = 99,
307 d7 = 98,
308 df7 = 97,
309 cs7 = 97,
310 c7 = 96,
311 cf7 = 95,
312 bs6 = 96,
313 b6 = 95,
314 bf6 = 94,
315 as6 = 94,
316 a6 = 93,
317 af6 = 92,
318 gs6 = 92,
319 g6 = 91,
320 gf6 = 90,
321 fs6 = 90,
322 f6 = 89,
323 ff6 = 88,
324 es6 = 89,
325 e6 = 88,
326 ef6 = 87,
327 ds6 = 87,
328 d6 = 86,
329 df6 = 85,
330 cs6 = 85,
331 c6 = 84,
332 cf6 = 83,
333 bs5 = 84,
334 b5 = 83,
335 bf5 = 82,
336 as5 = 82,
337 a5 = 81,
338 af5 = 80,
339 gs5 = 80,
340 g5 = 79,
341 gf5 = 78,
342 fs5 = 78,
343 f5 = 77,
344 ff5 = 76,
345 es5 = 77,
346 e5 = 76,
347 ef5 = 75,
348 ds5 = 75,
349 d5 = 74,
350 df5 = 73,
351 cs5 = 73,
352 c5 = 72,
353 cf5 = 71,
354 bs4 = 72,
355 b4 = 71,
356 bf4 = 70,
357 as4 = 70,
358 a4 = 69,
359 af4 = 68,
360 gs4 = 68,
361 g4 = 67,
362 gf4 = 66,
363 fs4 = 66,
364 f4 = 65,
365 ff4 = 64,
366 es4 = 65,
367 e4 = 64,
368 ef4 = 63,
369 ds4 = 63,
370 d4 = 62,
371 df4 = 61,
372 cs4 = 61,
373 c4 = 60,
374 cf4 = 59,
375 bs3 = 60,
376 b3 = 59,
377 bf3 = 58,
378 as3 = 58,
379 a3 = 57,
380 af3 = 56,
381 gs3 = 56,
382 g3 = 55,
383 gf3 = 54,
384 fs3 = 54,
385 f3 = 53,
386 ff3 = 52,
387 es3 = 53,
388 e3 = 52,
389 ef3 = 51,
390 ds3 = 51,
391 d3 = 50,
392 df3 = 49,
393 cs3 = 49,
394 c3 = 48,
395 cf3 = 47,
396 bs2 = 48,
397 b2 = 47,
398 bf2 = 46,
399 as2 = 46,
400 a2 = 45,
401 af2 = 44,
402 gs2 = 44,
403 g2 = 43,
404 gf2 = 42,
405 fs2 = 42,
406 f2 = 41,
407 ff2 = 40,
408 es2 = 41,
409 e2 = 40,
410 ef2 = 39,
411 ds2 = 39,
412 d2 = 38,
413 df2 = 37,
414 cs2 = 37,
415 c2 = 36,
416 cf2 = 35,
417 bs1 = 36,
418 b1 = 35,
419 bf1 = 34,
420 as1 = 34,
421 a1 = 33,
422 af1 = 32,
423 gs1 = 32,
424 g1 = 31,
425 gf1 = 30,
426 fs1 = 30,
427 f1 = 29,
428 ff1 = 28,
429 es1 = 29,
430 e1 = 28,
431 ef1 = 27,
432 ds1 = 27,
433 d1 = 26,
434 df1 = 25,
435 cs1 = 25,
436 c1 = 24,
437 cf1 = 23,
438 bs0 = 24,
439 b0 = 23,
440 bf0 = 22,
441 as0 = 22,
442 a0 = 21,
443 af0 = 20,
444 gs0 = 20,
445 g0 = 19,
446 gf0 = 18,
447 fs0 = 18,
448 f0 = 17,
449 ff0 = 16,
450 es0 = 17,
451 e0 = 16,
452 ef0 = 15,
453 ds0 = 15,
454 d0 = 14,
455 df0 = 13,
456 cs0 = 13,
457 c0 = 12,
458 cf0 = 11,
459 bsn1 = 12,
460 bn1 = 11,
461 bfn1 = 10,
462 asn1 = 10,
463 an1 = 9,
464 afn1 = 8,
465 gsn1 = 8,
466 gn1 = 7,
467 gfn1 = 6,
468 fsn1 = 6,
469 fn1 = 5,
470 ffn1 = 4,
471 esn1 = 5,
472 en1 = 4,
473 efn1 = 3,
474 dsn1 = 3,
475 dn1 = 2,
476 dfn1 = 1,
477 csn1 = 1,
478 cn1 = 0,
479 REST = (int)jm.music.data.Note.REST; //No Note
480
481 }

(:sourcend:)