asigalov61
commited on
Update app.py
Browse files
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 |
-
|
467 |
-
|
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 |
-
|
474 |
-
|
475 |
-
|
476 |
-
print('
|
|
|
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)
|