Update app.py
Browse files
app.py
CHANGED
|
@@ -212,8 +212,23 @@ def render_midi(input_midi,
|
|
| 212 |
f.write(fdata)
|
| 213 |
f.close()
|
| 214 |
|
| 215 |
-
if soundfont_bank in ["Super GM",
|
| 216 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
|
| 218 |
else:
|
| 219 |
sf2bank = 0
|
|
@@ -302,9 +317,9 @@ if __name__ == "__main__":
|
|
| 302 |
|
| 303 |
soundfont_bank = gr.Radio(["Super GM",
|
| 304 |
"Orpheus GM",
|
| 305 |
-
"Live HQ GM"
|
| 306 |
-
"Nice
|
| 307 |
-
"Real
|
| 308 |
"Super Game Boy",
|
| 309 |
"Proto Square"
|
| 310 |
],
|
|
|
|
| 212 |
f.write(fdata)
|
| 213 |
f.close()
|
| 214 |
|
| 215 |
+
if soundfont_bank in ["Super GM",
|
| 216 |
+
"Orpheus GM",
|
| 217 |
+
"Live HQ GM"
|
| 218 |
+
"Nice Strings + Orchestra",
|
| 219 |
+
"Real Choir",
|
| 220 |
+
"Super Game Boy",
|
| 221 |
+
"Proto Square"
|
| 222 |
+
]:
|
| 223 |
+
|
| 224 |
+
sf2bank = ["Super GM",
|
| 225 |
+
"Orpheus GM",
|
| 226 |
+
"Live HQ GM"
|
| 227 |
+
"Nice Strings + Orchestra",
|
| 228 |
+
"Real Choir",
|
| 229 |
+
"Super Game Boy",
|
| 230 |
+
"Proto Square"
|
| 231 |
+
].index(soundfont_bank)
|
| 232 |
|
| 233 |
else:
|
| 234 |
sf2bank = 0
|
|
|
|
| 317 |
|
| 318 |
soundfont_bank = gr.Radio(["Super GM",
|
| 319 |
"Orpheus GM",
|
| 320 |
+
"Live HQ GM",
|
| 321 |
+
"Nice Strings + Orchestra",
|
| 322 |
+
"Real Choir",
|
| 323 |
"Super Game Boy",
|
| 324 |
"Proto Square"
|
| 325 |
],
|