Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
9c5d216
1
Parent(s):
5bda4f9
Update midi_synthesizer.py
Browse files- midi_synthesizer.py +1 -1
midi_synthesizer.py
CHANGED
@@ -22,7 +22,7 @@ def synthesis(midi_opus, soundfont_path, sample_rate=44100):
|
|
22 |
list_of_MIDI_patches=[0, 24, 32, 40, 42, 46, 56, 71, 73, 0, 53, 19, 0, 0, 0, 0]
|
23 |
for c in range(16):
|
24 |
if c == 9:
|
25 |
-
fl.program_select(c, sfid, 128)
|
26 |
else:
|
27 |
fl.program_select(c, sfid, list_of_MIDI_patches[c], 0)
|
28 |
for event in event_list:
|
|
|
22 |
list_of_MIDI_patches=[0, 24, 32, 40, 42, 46, 56, 71, 73, 0, 53, 19, 0, 0, 0, 0]
|
23 |
for c in range(16):
|
24 |
if c == 9:
|
25 |
+
fl.program_select(c, sfid, 128, 0)
|
26 |
else:
|
27 |
fl.program_select(c, sfid, list_of_MIDI_patches[c], 0)
|
28 |
for event in event_list:
|