Franco Astegiano commited on
Commit
1f9d3d2
·
unverified ·
1 Parent(s): de7f4d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- 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!
 
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!