Spaces:
Running
Running
asigalov61
commited on
Commit
•
e476fc7
1
Parent(s):
07e5691
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def find_midi(search_string, search_options):
|
|
87 |
ax=plt.axes(title='MIDI Match Plot')
|
88 |
ax.set_facecolor('black')
|
89 |
|
90 |
-
plt.scatter(x,y, c=c)
|
91 |
plt.xlabel("Time in MIDI ticks")
|
92 |
plt.ylabel("MIDI Pitch")
|
93 |
|
@@ -97,7 +97,7 @@ def find_midi(search_string, search_options):
|
|
97 |
soundfont_path=soundfont_path,
|
98 |
sample_rate=16000, # 44100
|
99 |
volume_scale=10,
|
100 |
-
output_for_gradio=
|
101 |
)
|
102 |
yield AUX_DATA[search_match_index][0], fn+'.mid', (16000, audio), plt
|
103 |
|
|
|
87 |
ax=plt.axes(title='MIDI Match Plot')
|
88 |
ax.set_facecolor('black')
|
89 |
|
90 |
+
plt.scatter(x,y, s=0.1, c=c)
|
91 |
plt.xlabel("Time in MIDI ticks")
|
92 |
plt.ylabel("MIDI Pitch")
|
93 |
|
|
|
97 |
soundfont_path=soundfont_path,
|
98 |
sample_rate=16000, # 44100
|
99 |
volume_scale=10,
|
100 |
+
output_for_gradio=True
|
101 |
)
|
102 |
yield AUX_DATA[search_match_index][0], fn+'.mid', (16000, audio), plt
|
103 |
|