Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,10 @@ def Render_MIDI(input_midi,
|
|
| 141 |
|
| 142 |
elif render_type == "Reverse":
|
| 143 |
output_score = TMIDIX.reverse_enhanced_score_notes(escore)
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
| 145 |
elif render_type == 'Repair Chords':
|
| 146 |
fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]
|
| 147 |
output_score = TMIDIX.flatten(fixed_cscore)
|
|
@@ -387,7 +390,8 @@ if __name__ == "__main__":
|
|
| 387 |
"Custom render",
|
| 388 |
"Extract melody",
|
| 389 |
"Flip",
|
| 390 |
-
"Reverse",
|
|
|
|
| 391 |
"Repair Chords",
|
| 392 |
"Longest Repeating Phrase",
|
| 393 |
"Multi-Instrumental Summary",
|
|
|
|
| 141 |
|
| 142 |
elif render_type == "Reverse":
|
| 143 |
output_score = TMIDIX.reverse_enhanced_score_notes(escore)
|
| 144 |
+
|
| 145 |
+
elif render_type == 'Repair Durations':
|
| 146 |
+
output_score = TMIDIX.merge_escore_notes_durations(escore)
|
| 147 |
+
|
| 148 |
elif render_type == 'Repair Chords':
|
| 149 |
fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]
|
| 150 |
output_score = TMIDIX.flatten(fixed_cscore)
|
|
|
|
| 390 |
"Custom render",
|
| 391 |
"Extract melody",
|
| 392 |
"Flip",
|
| 393 |
+
"Reverse",
|
| 394 |
+
"Repair Durations",
|
| 395 |
"Repair Chords",
|
| 396 |
"Longest Repeating Phrase",
|
| 397 |
"Multi-Instrumental Summary",
|