asigalov61 commited on
Commit
7155cdd
1 Parent(s): 497670e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -341,7 +341,7 @@ def match_midi(midi, progress=gr.Progress()):
341
  txt_mdata = ''
342
 
343
  for m in mdata:
344
- txt_mdata += str(m)
345
  txt_mdata += chr(10)
346
 
347
  x = []
@@ -370,7 +370,7 @@ def match_midi(midi, progress=gr.Progress()):
370
  with open(f"output.mid", 'wb') as f:
371
  f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))
372
  audio = synthesis(MIDI.score2opus([mid_seq_ticks, mid_seq]), soundfont_path)
373
- yield txt_mdata, "output.mid", (44100, audio), plt
374
 
375
  #==========================================================================================================
376
 
 
341
  txt_mdata = ''
342
 
343
  for m in mdata:
344
+ txt_mdata += str(m[0]) + ':' + str(m[1])
345
  txt_mdata += chr(10)
346
 
347
  x = []
 
370
  with open(f"output.mid", 'wb') as f:
371
  f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))
372
  audio = synthesis(MIDI.score2opus([mid_seq_ticks, mid_seq]), soundfont_path)
373
+ yield txt_mdata, "MIDI-Match-Sample.mid", (44100, audio), plt
374
 
375
  #==========================================================================================================
376