Spaces:
Runtime error
Runtime error
Create constants.py
Browse files- constants.py +133 -0
constants.py
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
SAMPLE_RATE = 44100
|
2 |
+
|
3 |
+
|
4 |
+
GM_INSTRUMENTS = [
|
5 |
+
"Acoustic Grand Piano",
|
6 |
+
"Bright Acoustic Piano",
|
7 |
+
"Electric Grand Piano",
|
8 |
+
"Honky-tonk Piano",
|
9 |
+
"Electric Piano 1",
|
10 |
+
"Electric Piano 2",
|
11 |
+
"Harpsichord",
|
12 |
+
"Clavi",
|
13 |
+
"Celesta",
|
14 |
+
"Glockenspiel",
|
15 |
+
"Music Box",
|
16 |
+
"Vibraphone",
|
17 |
+
"Marimba",
|
18 |
+
"Xylophone",
|
19 |
+
"Tubular Bells",
|
20 |
+
"Dulcimer",
|
21 |
+
"Drawbar Organ",
|
22 |
+
"Percussive Organ",
|
23 |
+
"Rock Organ",
|
24 |
+
"Church Organ",
|
25 |
+
"Reed Organ",
|
26 |
+
"Accordion",
|
27 |
+
"Harmonica",
|
28 |
+
"Tango Accordion",
|
29 |
+
"Acoustic Guitar (nylon)",
|
30 |
+
"Acoustic Guitar (steel)",
|
31 |
+
"Electric Guitar (jazz)",
|
32 |
+
"Electric Guitar (clean)",
|
33 |
+
"Electric Guitar (muted)",
|
34 |
+
"Overdriven Guitar",
|
35 |
+
"Distortion Guitar",
|
36 |
+
"Guitar Harmonics",
|
37 |
+
"Acoustic Bass",
|
38 |
+
"Electric Bass (finger)",
|
39 |
+
"Electric Bass (pick)",
|
40 |
+
"Fretless Bass",
|
41 |
+
"Slap Bass 1",
|
42 |
+
"Slap Bass 2",
|
43 |
+
"Synth Bass 1",
|
44 |
+
"Synth Bass 2",
|
45 |
+
"Violin",
|
46 |
+
"Viola",
|
47 |
+
"Cello",
|
48 |
+
"Contrabass",
|
49 |
+
"Tremolo Strings",
|
50 |
+
"Pizzicato Strings",
|
51 |
+
"Orchestral Harp",
|
52 |
+
"Timpani",
|
53 |
+
"String Ensemble 1",
|
54 |
+
"String Ensemble 2",
|
55 |
+
"Synth Strings 1",
|
56 |
+
"Synth Strings 2",
|
57 |
+
"Choir Aahs",
|
58 |
+
"Voice Oohs",
|
59 |
+
"Synth Choir",
|
60 |
+
"Orchestra Hit",
|
61 |
+
"Trumpet",
|
62 |
+
"Trombone",
|
63 |
+
"Tuba",
|
64 |
+
"Muted Trumpet",
|
65 |
+
"French Horn",
|
66 |
+
"Brass Section",
|
67 |
+
"Synth Brass 1",
|
68 |
+
"Synth Brass 2",
|
69 |
+
"Soprano Sax",
|
70 |
+
"Alto Sax",
|
71 |
+
"Tenor Sax",
|
72 |
+
"Baritone Sax",
|
73 |
+
"Oboe",
|
74 |
+
"English Horn",
|
75 |
+
"Bassoon",
|
76 |
+
"Clarinet",
|
77 |
+
"Piccolo",
|
78 |
+
"Flute",
|
79 |
+
"Recorder",
|
80 |
+
"Pan Flute",
|
81 |
+
"Blown Bottle",
|
82 |
+
"Shakuhachi",
|
83 |
+
"Whistle",
|
84 |
+
"Ocarina",
|
85 |
+
"Lead 1 (square)",
|
86 |
+
"Lead 2 (sawtooth)",
|
87 |
+
"Lead 3 (calliope)",
|
88 |
+
"Lead 4 (chiff)",
|
89 |
+
"Lead 5 (charang)",
|
90 |
+
"Lead 6 (voice)",
|
91 |
+
"Lead 7 (fifths)",
|
92 |
+
"Lead 8 (bass + lead)",
|
93 |
+
"Pad 1 (new age)",
|
94 |
+
"Pad 2 (warm)",
|
95 |
+
"Pad 3 (polysynth)",
|
96 |
+
"Pad 4 (choir)",
|
97 |
+
"Pad 5 (bowed)",
|
98 |
+
"Pad 6 (metallic)",
|
99 |
+
"Pad 7 (halo)",
|
100 |
+
"Pad 8 (sweep)",
|
101 |
+
"FX 1 (rain)",
|
102 |
+
"FX 2 (soundtrack)",
|
103 |
+
"FX 3 (crystal)",
|
104 |
+
"FX 4 (atmosphere)",
|
105 |
+
"FX 5 (brightness)",
|
106 |
+
"FX 6 (goblins)",
|
107 |
+
"FX 7 (echoes)",
|
108 |
+
"FX 8 (sci-fi)",
|
109 |
+
"Sitar",
|
110 |
+
"Banjo",
|
111 |
+
"Shamisen",
|
112 |
+
"Koto",
|
113 |
+
"Kalimba",
|
114 |
+
"Bagpipe",
|
115 |
+
"Fiddle",
|
116 |
+
"Shanai",
|
117 |
+
"Tinkle Bell",
|
118 |
+
"Agogo",
|
119 |
+
"Steel Drums",
|
120 |
+
"Woodblock",
|
121 |
+
"Taiko Drum",
|
122 |
+
"Melodic Tom",
|
123 |
+
"Synth Drum",
|
124 |
+
"Reverse Cymbal",
|
125 |
+
"Guitar Fret Noise",
|
126 |
+
"Breath Noise",
|
127 |
+
"Seashore",
|
128 |
+
"Bird Tweet",
|
129 |
+
"Telephone Ring",
|
130 |
+
"Helicopter",
|
131 |
+
"Applause",
|
132 |
+
"Gunshot",
|
133 |
+
]
|