dx2102 commited on
Commit
a97898c
·
verified ·
1 Parent(s): 4dbf87c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=3, alpha=0.3, color='black')
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'