asigalov61 commited on
Commit
8391270
1 Parent(s): 5400c4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import os.path
2
 
3
  import time as reqtime
@@ -105,11 +107,11 @@ def AddMelody(input_midi, input_channel, input_patch, input_start_chord):
105
  #========================================================
106
 
107
  output_midi_title = str(fn1)
108
- output_midi_summary = str(song_f[:3])
109
  output_midi = str(new_fn)
110
  output_audio = (16000, audio)
111
 
112
- output_plot = TMIDIX.plot_ms_SONG(song_f, plot_title=output_midi, return_plt=True)
113
 
114
  print('Output MIDI file name:', output_midi)
115
  print('Output MIDI title:', output_midi_title)
 
1
+ # https://huggingface.co/spaces/asigalov61/MIDI-Melody
2
+
3
  import os.path
4
 
5
  import time as reqtime
 
107
  #========================================================
108
 
109
  output_midi_title = str(fn1)
110
+ output_midi_summary = str(output_score[:3])
111
  output_midi = str(new_fn)
112
  output_audio = (16000, audio)
113
 
114
+ output_plot = TMIDIX.plot_ms_SONG(output_score, plot_title=output_midi, return_plt=True)
115
 
116
  print('Output MIDI file name:', output_midi)
117
  print('Output MIDI title:', output_midi_title)