asigalov61 commited on
Commit
5bda4f9
1 Parent(s): 94526b4

Update midi_synthesizer.py

Browse files
Files changed (1) hide show
  1. midi_synthesizer.py +1 -1
midi_synthesizer.py CHANGED
@@ -24,7 +24,7 @@ def synthesis(midi_opus, soundfont_path, sample_rate=44100):
24
  if c == 9:
25
  fl.program_select(c, sfid, 128)
26
  else:
27
- fl.program_select(c, sfid, list_of_MIDI_patches[c])
28
  for event in event_list:
29
  name = event[0]
30
  sample_len = int(((event[1] / ticks_per_beat) * tempo / (10 ** 6)) * sample_rate)
 
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:
29
  name = event[0]
30
  sample_len = int(((event[1] / ticks_per_beat) * tempo / (10 ** 6)) * sample_rate)