asigalov61
commited on
Commit
•
e5d44e9
1
Parent(s):
1b639c6
Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,7 @@ def MixMelody(input_midi, input_find_best_match):
|
|
213 |
|
214 |
else:
|
215 |
|
216 |
-
if i < len(cscore)
|
217 |
next_note_dtime = cscore[i+1][0][1] - cscore[i][0][1]
|
218 |
|
219 |
mixed_song.extend(mix_chord(cho, src_harm_tones_chords[midx], trg_patch, src_melody_pitches[midx], next_note_dtime))
|
|
|
213 |
|
214 |
else:
|
215 |
|
216 |
+
if i < len(cscore):
|
217 |
next_note_dtime = cscore[i+1][0][1] - cscore[i][0][1]
|
218 |
|
219 |
mixed_song.extend(mix_chord(cho, src_harm_tones_chords[midx], trg_patch, src_melody_pitches[midx], next_note_dtime))
|