asigalov61
commited on
Commit
•
ecaa203
1
Parent(s):
6b7d632
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,10 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
|
|
86 |
|
87 |
elif render_type == "Flip":
|
88 |
output_score = TMIDIX.flip_enhanced_score_notes(escore)
|
89 |
-
|
|
|
|
|
|
|
90 |
elif render_type == 'Repair':
|
91 |
fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]
|
92 |
output_score = TMIDIX.flatten(fixed_cscore)
|
@@ -213,7 +216,7 @@ if __name__ == "__main__":
|
|
213 |
|
214 |
gr.Markdown("## Select desired render type")
|
215 |
|
216 |
-
render_type = gr.Radio(["Render as-is", "Custom render", "Extract melody", "Flip", "Repair"], label="Render type", value="Render as-is")
|
217 |
|
218 |
gr.Markdown("## Select desired render options")
|
219 |
|
|
|
86 |
|
87 |
elif render_type == "Flip":
|
88 |
output_score = TMIDIX.flip_enhanced_score_notes(escore)
|
89 |
+
|
90 |
+
elif render_type == "Reverse":
|
91 |
+
output_score = TMIDIX.reverse_enhanced_score_notes(escore)
|
92 |
+
|
93 |
elif render_type == 'Repair':
|
94 |
fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]
|
95 |
output_score = TMIDIX.flatten(fixed_cscore)
|
|
|
216 |
|
217 |
gr.Markdown("## Select desired render type")
|
218 |
|
219 |
+
render_type = gr.Radio(["Render as-is", "Custom render", "Extract melody", "Flip", "Reverse", "Repair"], label="Render type", value="Render as-is")
|
220 |
|
221 |
gr.Markdown("## Select desired render options")
|
222 |
|