Update app.py
Browse files
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])
|