yangwang825
commited on
Commit
•
f22560f
1
Parent(s):
61a0dc7
Create _pianos.py
Browse files- _pianos.py +90 -0
_pianos.py
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_PITCHES = {
|
2 |
+
"009": "A2",
|
3 |
+
"010": "A2#/B2b",
|
4 |
+
"011": "B2",
|
5 |
+
"100": "C1",
|
6 |
+
"101": "C1#/D1b",
|
7 |
+
"102": "D1",
|
8 |
+
"103": "D1#/E1b",
|
9 |
+
"104": "E1",
|
10 |
+
"105": "F1",
|
11 |
+
"106": "F1#/G1b",
|
12 |
+
"107": "G1",
|
13 |
+
"108": "G1#/A1b",
|
14 |
+
"109": "A1",
|
15 |
+
"110": "A1#/B1b",
|
16 |
+
"111": "B1",
|
17 |
+
"200": "C",
|
18 |
+
"201": "C#/Db",
|
19 |
+
"202": "D",
|
20 |
+
"203": "D#/Eb",
|
21 |
+
"204": "E",
|
22 |
+
"205": "F",
|
23 |
+
"206": "F#/Gb",
|
24 |
+
"207": "G",
|
25 |
+
"208": "G#/Ab",
|
26 |
+
"209": "A",
|
27 |
+
"210": "A#/Bb",
|
28 |
+
"211": "B",
|
29 |
+
"300": "c",
|
30 |
+
"301": "c#/db",
|
31 |
+
"302": "d",
|
32 |
+
"303": "d#/eb",
|
33 |
+
"304": "e",
|
34 |
+
"305": "f",
|
35 |
+
"306": "f#/gb",
|
36 |
+
"307": "g",
|
37 |
+
"308": "g#/ab",
|
38 |
+
"309": "a",
|
39 |
+
"310": "a#/bb",
|
40 |
+
"311": "b",
|
41 |
+
"400": "c1",
|
42 |
+
"401": "c1#/d1b",
|
43 |
+
"402": "d1",
|
44 |
+
"403": "d1#/e1b",
|
45 |
+
"404": "e1",
|
46 |
+
"405": "f1",
|
47 |
+
"406": "f1#/g1b",
|
48 |
+
"407": "g1",
|
49 |
+
"408": "g1#/a1b",
|
50 |
+
"409": "a1",
|
51 |
+
"410": "a1#/b1b",
|
52 |
+
"411": "b1",
|
53 |
+
"500": "c2",
|
54 |
+
"501": "c2#/d2b",
|
55 |
+
"502": "d2",
|
56 |
+
"503": "d2#/e2b",
|
57 |
+
"504": "e2",
|
58 |
+
"505": "f2",
|
59 |
+
"506": "f2#/g2b",
|
60 |
+
"507": "g2",
|
61 |
+
"508": "g2#/a2b",
|
62 |
+
"509": "a2",
|
63 |
+
"510": "a2#/b2b",
|
64 |
+
"511": "b2",
|
65 |
+
"600": "c3",
|
66 |
+
"601": "c3#/d3b",
|
67 |
+
"602": "d3",
|
68 |
+
"603": "d3#/e3b",
|
69 |
+
"604": "e3",
|
70 |
+
"605": "f3",
|
71 |
+
"606": "f3#/g3b",
|
72 |
+
"607": "g3",
|
73 |
+
"608": "g3#/a3b",
|
74 |
+
"609": "a3",
|
75 |
+
"610": "a3#/b3b",
|
76 |
+
"611": "b3",
|
77 |
+
"700": "c4",
|
78 |
+
"701": "c4#/d4b",
|
79 |
+
"702": "d4",
|
80 |
+
"703": "d4#/e4b",
|
81 |
+
"704": "e4",
|
82 |
+
"705": "f4",
|
83 |
+
"706": "f4#/g4b",
|
84 |
+
"707": "g4",
|
85 |
+
"708": "g4#/a4b",
|
86 |
+
"709": "a4",
|
87 |
+
"710": "a4#/b4b",
|
88 |
+
"711": "b4",
|
89 |
+
"800": "c5",
|
90 |
+
}
|