asigalov61
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -129,8 +129,8 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
|
|
129 |
f.write(fdata)
|
130 |
f.close()
|
131 |
|
132 |
-
if soundfont_bank in ["General MIDI", "Nice strings plus orchestra", "Real choir"]:
|
133 |
-
sf2bank = ["General MIDI", "Nice strings plus orchestra", "Real choir"].index(soundfont_bank)
|
134 |
|
135 |
else:
|
136 |
sf2bank = 0
|
|
|
129 |
f.write(fdata)
|
130 |
f.close()
|
131 |
|
132 |
+
if soundfont_bank in ["General MIDI", "Nice strings plus orchestra", "Real choir", "Super Game Boy"]:
|
133 |
+
sf2bank = ["General MIDI", "Nice strings plus orchestra", "Real choir", "Super Game Boy"].index(soundfont_bank)
|
134 |
|
135 |
else:
|
136 |
sf2bank = 0
|