asigalov61 commited on
Commit
1e0f951
·
verified ·
1 Parent(s): e6c185c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -208,7 +208,7 @@ def Generate_Chords_Progression(minimum_song_length_in_chords_chunks,
208
 
209
  ctimes = sorted(set([e[1] for e in output_score if e[3] != 9]))
210
 
211
- for i, e in enumerate(chords_labels):
212
  e[1] = ctimes[i]
213
 
214
  midi_score = sorted(chords_labels + output_score, key=lambda x: x[1])
 
208
 
209
  ctimes = sorted(set([e[1] for e in output_score if e[3] != 9]))
210
 
211
+ for i, e in enumerate(chords_labels[:len(ctimes)]):
212
  e[1] = ctimes[i]
213
 
214
  midi_score = sorted(chords_labels + output_score, key=lambda x: x[1])