Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,8 @@ def find_midi(title, artist):
|
|
76 |
print('Done!')
|
77 |
print('=' * 70)
|
78 |
|
79 |
-
song_artist =
|
|
|
80 |
zlib_file_name = best_corpus_match[1]
|
81 |
|
82 |
print('Fetching MIDI score...')
|
@@ -98,6 +99,7 @@ def find_midi(title, artist):
|
|
98 |
|
99 |
print('Rendering results...')
|
100 |
print('=' * 70)
|
|
|
101 |
print('Sample INTs', MIDI_score_data[:12])
|
102 |
print('=' * 70)
|
103 |
|
@@ -168,12 +170,12 @@ def find_midi(title, artist):
|
|
168 |
|
169 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(output_score,
|
170 |
output_signature = 'Los Angeles MIDI Dataset Search',
|
171 |
-
output_file_name =
|
172 |
track_name='Project Los Angeles',
|
173 |
list_of_MIDI_patches=patches
|
174 |
)
|
175 |
|
176 |
-
new_fn =
|
177 |
|
178 |
audio = midi_to_colab_audio(new_fn,
|
179 |
soundfont_path=soundfont,
|
@@ -187,7 +189,7 @@ def find_midi(title, artist):
|
|
187 |
|
188 |
#========================================================
|
189 |
|
190 |
-
output_midi_title = str(
|
191 |
output_midi_summary = str(top_ten_matches)
|
192 |
output_midi = str(new_fn)
|
193 |
output_audio = (16000, audio)
|
|
|
76 |
print('Done!')
|
77 |
print('=' * 70)
|
78 |
|
79 |
+
song_artist = best_corpus_match[0]
|
80 |
+
song_artist_title = str(song_artist).title()
|
81 |
zlib_file_name = best_corpus_match[1]
|
82 |
|
83 |
print('Fetching MIDI score...')
|
|
|
99 |
|
100 |
print('Rendering results...')
|
101 |
print('=' * 70)
|
102 |
+
print('MIDi Title:', song_artist_title)
|
103 |
print('Sample INTs', MIDI_score_data[:12])
|
104 |
print('=' * 70)
|
105 |
|
|
|
170 |
|
171 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(output_score,
|
172 |
output_signature = 'Los Angeles MIDI Dataset Search',
|
173 |
+
output_file_name = song_artist_title,
|
174 |
track_name='Project Los Angeles',
|
175 |
list_of_MIDI_patches=patches
|
176 |
)
|
177 |
|
178 |
+
new_fn = song_artist_title + '.mid'
|
179 |
|
180 |
audio = midi_to_colab_audio(new_fn,
|
181 |
soundfont_path=soundfont,
|
|
|
189 |
|
190 |
#========================================================
|
191 |
|
192 |
+
output_midi_title = str(song_artist_title)
|
193 |
output_midi_summary = str(top_ten_matches)
|
194 |
output_midi = str(new_fn)
|
195 |
output_audio = (16000, audio)
|