asigalov61
commited on
Commit
•
4d53e66
1
Parent(s):
b40ab34
Update app.py
Browse files
app.py
CHANGED
@@ -207,17 +207,15 @@ def ClassifyMIDI(input_midi):
|
|
207 |
|
208 |
score_idx = processed_scores_labels.index(classifier_labels[0][final_result-384])
|
209 |
|
210 |
-
|
211 |
|
212 |
print('=' * 70)
|
213 |
print('Sample INTs', output[:15])
|
214 |
print('=' * 70)
|
215 |
|
216 |
-
out1 = output
|
217 |
-
|
218 |
fn1 = processed_scores[score_idx][0]
|
219 |
|
220 |
-
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(
|
221 |
output_signature = 'Advanced MIDI Classifier',
|
222 |
output_file_name = fn1,
|
223 |
track_name='Project Los Angeles',
|
@@ -245,7 +243,7 @@ def ClassifyMIDI(input_midi):
|
|
245 |
output_midi = str(new_fn)
|
246 |
output_audio = (16000, audio)
|
247 |
|
248 |
-
output_plot = TMIDIX.plot_ms_SONG(
|
249 |
|
250 |
print('Output MIDI file name:', output_midi)
|
251 |
print('Output MIDI title:', output_midi_title)
|
|
|
207 |
|
208 |
score_idx = processed_scores_labels.index(classifier_labels[0][final_result-384])
|
209 |
|
210 |
+
output_score = processed_scores[score_idx][1]
|
211 |
|
212 |
print('=' * 70)
|
213 |
print('Sample INTs', output[:15])
|
214 |
print('=' * 70)
|
215 |
|
|
|
|
|
216 |
fn1 = processed_scores[score_idx][0]
|
217 |
|
218 |
+
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(output_score,
|
219 |
output_signature = 'Advanced MIDI Classifier',
|
220 |
output_file_name = fn1,
|
221 |
track_name='Project Los Angeles',
|
|
|
243 |
output_midi = str(new_fn)
|
244 |
output_audio = (16000, audio)
|
245 |
|
246 |
+
output_plot = TMIDIX.plot_ms_SONG(output_score, plot_title=output_midi, return_plt=True, timings_multiplier=16)
|
247 |
|
248 |
print('Output MIDI file name:', output_midi)
|
249 |
print('Output MIDI title:', output_midi_title)
|