asigalov61 commited on
Commit
f5827f3
·
verified ·
1 Parent(s): 64feaa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -14
app.py CHANGED
@@ -458,24 +458,17 @@ def CompareMIDIs(input_src_midi, input_trg_midi, input_sampling_resolution, inpu
458
  sname, ssong_f, saudio = tokens_to_MIDI(src_tokens[:comp_length], sfn1)
459
  tname, tsong_f, taudio = tokens_to_MIDI(trg_tokens[:comp_length], tfn1)
460
 
461
- print('Done!')
462
- print('=' * 70)
463
-
464
  #========================================================
465
 
466
- output_midi_title = str(fn1)
467
- output_midi_summary = str(song_f[:3])
468
- output_midi = str(new_fn)
469
- output_audio = (16000, audio)
470
-
471
- output_plot = TMIDIX.plot_ms_SONG(song_f, plot_title=output_midi, return_plt=True)
472
 
473
- print('Output MIDI file name:', output_midi)
474
- print('Output MIDI title:', output_midi_title)
475
- print('Output MIDI summary:', output_midi_summary)
476
- print('=' * 70)
 
477
 
478
-
479
  #========================================================
480
 
481
  print('-' * 70)
 
458
  sname, ssong_f, saudio = tokens_to_MIDI(src_tokens[:comp_length], sfn1)
459
  tname, tsong_f, taudio = tokens_to_MIDI(trg_tokens[:comp_length], tfn1)
460
 
 
 
 
461
  #========================================================
462
 
463
+ output_src_audio = (16000, saudio)
464
+ output_src_plot = plot_ms_SONG(ssong_f, plot_title=sfn1, plot_curve_values=comp_cos_sims, return_plt=True)
 
 
 
 
465
 
466
+ output_trg_audio = (16000, taudio)
467
+ output_trg_plot = plot_ms_SONG(tsong_f, plot_title=tfn1, plot_curve_values=comp_cos_sims, return_plt=True)
468
+
469
+ print('Done!')
470
+ print('=' * 70)
471
 
 
472
  #========================================================
473
 
474
  print('-' * 70)