Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,8 +115,6 @@ def load_midi(input_midi):
|
|
| 115 |
if escore_notes:
|
| 116 |
|
| 117 |
escore_notes = TMIDIX.augment_enhanced_score_notes(escore_notes[0], sort_drums_last=True)
|
| 118 |
-
|
| 119 |
-
escore_notes = TMIDIX.recalculate_score_timings([e for e in escore_notes if e[3] != 9])
|
| 120 |
|
| 121 |
dscore = TMIDIX.delta_score_notes(escore_notes)
|
| 122 |
|
|
@@ -431,7 +429,7 @@ with gr.Blocks() as demo:
|
|
| 431 |
|
| 432 |
gr.Markdown("## Generation options")
|
| 433 |
|
| 434 |
-
num_prime_toks = gr.Slider(0, 1024, value=
|
| 435 |
|
| 436 |
humanize_durations = gr.Checkbox(value=False, label="Humanize durations")
|
| 437 |
humanize_velocities = gr.Checkbox(value=True, label="Humanize velocities")
|
|
@@ -463,7 +461,7 @@ with gr.Blocks() as demo:
|
|
| 463 |
)
|
| 464 |
|
| 465 |
gr.Examples(
|
| 466 |
-
[["Sharing The Night Together.kar",
|
| 467 |
],
|
| 468 |
[input_midi,
|
| 469 |
num_prime_toks,
|
|
|
|
| 115 |
if escore_notes:
|
| 116 |
|
| 117 |
escore_notes = TMIDIX.augment_enhanced_score_notes(escore_notes[0], sort_drums_last=True)
|
|
|
|
|
|
|
| 118 |
|
| 119 |
dscore = TMIDIX.delta_score_notes(escore_notes)
|
| 120 |
|
|
|
|
| 429 |
|
| 430 |
gr.Markdown("## Generation options")
|
| 431 |
|
| 432 |
+
num_prime_toks = gr.Slider(0, 1024, value=0, step=1, label="Number of prime tokens")
|
| 433 |
|
| 434 |
humanize_durations = gr.Checkbox(value=False, label="Humanize durations")
|
| 435 |
humanize_velocities = gr.Checkbox(value=True, label="Humanize velocities")
|
|
|
|
| 461 |
)
|
| 462 |
|
| 463 |
gr.Examples(
|
| 464 |
+
[["Sharing The Night Together.kar", 0, False, True, 0.9, 0.96]
|
| 465 |
],
|
| 466 |
[input_midi,
|
| 467 |
num_prime_toks,
|