Spaces:
Running
Running
asigalov61
commited on
Commit
•
b109aa2
1
Parent(s):
5123e9a
Update app.py
Browse files
app.py
CHANGED
@@ -140,8 +140,8 @@ def find_midi(title, artist):
|
|
140 |
plt.ylabel("MIDI Pitch")
|
141 |
|
142 |
with open(f"MIDI-Search-Sample.mid", 'wb') as f:
|
143 |
-
f.write(MIDI.score2midi([
|
144 |
-
audio = synthesis(MIDI.score2opus([
|
145 |
yield AUX_DATA[search_index][0], "MIDI-Search-Sample.mid", (44100, audio), plt
|
146 |
|
147 |
#==========================================================================================================
|
|
|
140 |
plt.ylabel("MIDI Pitch")
|
141 |
|
142 |
with open(f"MIDI-Search-Sample.mid", 'wb') as f:
|
143 |
+
f.write(MIDI.score2midi([500, song_f]))
|
144 |
+
audio = synthesis(MIDI.score2opus([500, song_f]), soundfont_path)
|
145 |
yield AUX_DATA[search_index][0], "MIDI-Search-Sample.mid", (44100, audio), plt
|
146 |
|
147 |
#==========================================================================================================
|