Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
5fec312
1
Parent(s):
5681620
Update app.py
Browse files
app.py
CHANGED
@@ -229,12 +229,12 @@ def Generate_POP_Section(input_comp_section,
|
|
229 |
|
230 |
if cha == 0:
|
231 |
channel = 3
|
232 |
-
vel = 110
|
233 |
patch = 40
|
234 |
|
235 |
else:
|
236 |
channel = 0
|
237 |
-
vel =
|
238 |
patch = 0
|
239 |
|
240 |
song_f.append(['note', time, dur, channel, pitch, vel, patch ])
|
@@ -352,6 +352,7 @@ if __name__ == "__main__":
|
|
352 |
output_plot],
|
353 |
Generate_POP_Section,
|
354 |
cache_examples=True,
|
|
|
355 |
)
|
356 |
|
357 |
app.queue().launch()
|
|
|
229 |
|
230 |
if cha == 0:
|
231 |
channel = 3
|
232 |
+
vel = 110+(pitch % 12)
|
233 |
patch = 40
|
234 |
|
235 |
else:
|
236 |
channel = 0
|
237 |
+
vel = max(40, pitch)
|
238 |
patch = 0
|
239 |
|
240 |
song_f.append(['note', time, dur, channel, pitch, vel, patch ])
|
|
|
352 |
output_plot],
|
353 |
Generate_POP_Section,
|
354 |
cache_examples=True,
|
355 |
+
cache_mode='eager'
|
356 |
)
|
357 |
|
358 |
app.queue().launch()
|