Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -183,8 +183,8 @@ with gr.Blocks() as demo:
|
|
183 |
pitch, duration, wait, velocity, instrument = [int(x) for x in line.split()]
|
184 |
except Exception as e:
|
185 |
continue
|
186 |
-
plt.plot([now, now+duration], [pitch, pitch], color='black')
|
187 |
-
plt.scatter(now, pitch, s=
|
188 |
now += wait
|
189 |
plt.savefig(f'./temp/{i}.svg')
|
190 |
return f'./temp/{i}.mid', f'./temp/{i}.svg'
|
|
|
183 |
pitch, duration, wait, velocity, instrument = [int(x) for x in line.split()]
|
184 |
except Exception as e:
|
185 |
continue
|
186 |
+
plt.plot([now, now+duration], [pitch, pitch], color='black', alpha=1)
|
187 |
+
plt.scatter(now, pitch, s=6, color='black', alpha=0.3)
|
188 |
now += wait
|
189 |
plt.savefig(f'./temp/{i}.svg')
|
190 |
return f'./temp/{i}.mid', f'./temp/{i}.svg'
|