asigalov61 commited on
Commit
8a1f411
1 Parent(s): 9177a5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -125,7 +125,7 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
125
 
126
  for e in output_score:
127
  if e[3] != 9:
128
- e[4] = (127 - e[4])+delta_min_pitch
129
 
130
  elif render_type == 'Repair':
131
  output_score = []
@@ -231,7 +231,8 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
231
  output_midi_summary = str(meta_data)
232
  output_midi = str(new_fn)
233
  output_audio = (srate, audio)
234
- output_plot = TMIDIX.plot_ms_SONG(output_score, plot_title=output_midi)
 
235
 
236
  print('Output MIDI file name:', output_midi)
237
  print('Output MIDI title:', output_midi_title)
 
125
 
126
  for e in output_score:
127
  if e[3] != 9:
128
+ e[4] = (127 - e[4]) + delta_min_pitch
129
 
130
  elif render_type == 'Repair':
131
  output_score = []
 
231
  output_midi_summary = str(meta_data)
232
  output_midi = str(new_fn)
233
  output_audio = (srate, audio)
234
+
235
+ output_plot = TMIDIX.plot_ms_SONG(output_score, plot_title=output_midi, return_plt=True)
236
 
237
  print('Output MIDI file name:', output_midi)
238
  print('Output MIDI title:', output_midi_title)