asigalov61 commited on
Commit
9d6cd5b
1 Parent(s): 61d470b

Upload TMIDIX.py

Browse files
Files changed (1) hide show
  1. TMIDIX.py +5 -1
TMIDIX.py CHANGED
@@ -5212,6 +5212,7 @@ def ordered_set(seq):
5212
 
5213
  def add_melody_to_enhanced_score_notes(enhanced_score_notes,
5214
  melody_start_time=0,
 
5215
  melody_notes_min_duration=-1,
5216
  melody_notes_max_duration=255,
5217
  melody_octave=5,
@@ -5242,7 +5243,10 @@ def add_melody_to_enhanced_score_notes(enhanced_score_notes,
5242
 
5243
  pt = melody_start_time
5244
 
5245
- for c in cscore:
 
 
 
5246
 
5247
  durs = [d[2] if d[3] != 9 else -1 for d in c]
5248
 
 
5212
 
5213
  def add_melody_to_enhanced_score_notes(enhanced_score_notes,
5214
  melody_start_time=0,
5215
+ melody_start_chord=0,
5216
  melody_notes_min_duration=-1,
5217
  melody_notes_max_duration=255,
5218
  melody_octave=5,
 
5243
 
5244
  pt = melody_start_time
5245
 
5246
+ for c in cscore[:melody_start_chord]:
5247
+ acc_score.extend(c)
5248
+
5249
+ for c in cscore[melody_start_chord:]:
5250
 
5251
  durs = [d[2] if d[3] != 9 else -1 for d in c]
5252