asigalov61 commited on
Commit
b26b98f
·
verified ·
1 Parent(s): e8e0d13

Upload TMIDIX.py

Browse files
Files changed (1) hide show
  1. TMIDIX.py +1 -1
TMIDIX.py CHANGED
@@ -5591,7 +5591,7 @@ def split_melody(enhanced_melody_score_notes,
5591
  for e in enhanced_melody_score_notes:
5592
  dtime = max(0, min(max_score_time, e[1]-pe[1]))
5593
 
5594
- if dtime > max(durs):
5595
  if chu:
5596
  mel_chunks.append(chu)
5597
  chu = []
 
5591
  for e in enhanced_melody_score_notes:
5592
  dtime = max(0, min(max_score_time, e[1]-pe[1]))
5593
 
5594
+ if dtime > stime:
5595
  if chu:
5596
  mel_chunks.append(chu)
5597
  chu = []