Franco Astegiano commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -381,11 +381,11 @@ def main(audio):
|
|
| 381 |
|
| 382 |
# At this point, best_notes_and_rests contains the best quantization.
|
| 383 |
# Since we don't need to have rests at the beginning, let's remove these:
|
| 384 |
-
while best_notes_and_rests[0] == 'Rest':
|
| 385 |
-
|
| 386 |
# Also remove silence at the end.
|
| 387 |
-
while best_notes_and_rests[-1] == 'Rest':
|
| 388 |
-
|
| 389 |
|
| 390 |
# ____________________________________________________________________________
|
| 391 |
# Now let's write the quantized notes as sheet music score!
|
|
|
|
| 381 |
|
| 382 |
# At this point, best_notes_and_rests contains the best quantization.
|
| 383 |
# Since we don't need to have rests at the beginning, let's remove these:
|
| 384 |
+
#while best_notes_and_rests[0] == 'Rest':
|
| 385 |
+
# best_notes_and_rests = best_notes_and_rests[1:]
|
| 386 |
# Also remove silence at the end.
|
| 387 |
+
#while best_notes_and_rests[-1] == 'Rest':
|
| 388 |
+
# best_notes_and_rests = best_notes_and_rests[:-1]
|
| 389 |
|
| 390 |
# ____________________________________________________________________________
|
| 391 |
# Now let's write the quantized notes as sheet music score!
|