Spaces:
Runtime error
Runtime error
Upload TMIDIX.py
Browse files
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 |
|