asigalov61
commited on
Commit
•
f4a049a
1
Parent(s):
1424ad3
Update app.py
Browse files
app.py
CHANGED
@@ -143,12 +143,12 @@ def render_midi(input_midi,
|
|
143 |
output_score = TMIDIX.recalculate_score_timings(output_score)
|
144 |
output_score = TMIDIX.align_escore_notes_to_bars(output_score, split_durations=True)
|
145 |
|
|
|
|
|
|
|
146 |
if render_remove_drums:
|
147 |
output_score = TMIDIX.strip_drums_from_escore_notes(output_score)
|
148 |
-
|
149 |
-
if render_output_as_solo_piano:
|
150 |
-
output_score = TMIDIX.solo_piano_escore_notes(output_score)
|
151 |
-
|
152 |
if render_type == "Summarize":
|
153 |
sp_escore_notes = TMIDIX.solo_piano_escore_notes(output_score)
|
154 |
bmatrix = TMIDIX.escore_notes_to_binary_matrix(sp_escore_notes)
|
|
|
143 |
output_score = TMIDIX.recalculate_score_timings(output_score)
|
144 |
output_score = TMIDIX.align_escore_notes_to_bars(output_score, split_durations=True)
|
145 |
|
146 |
+
if render_output_as_solo_piano:
|
147 |
+
output_score = TMIDIX.solo_piano_escore_notes(output_score, keep_drums=True)
|
148 |
+
|
149 |
if render_remove_drums:
|
150 |
output_score = TMIDIX.strip_drums_from_escore_notes(output_score)
|
151 |
+
|
|
|
|
|
|
|
152 |
if render_type == "Summarize":
|
153 |
sp_escore_notes = TMIDIX.solo_piano_escore_notes(output_score)
|
154 |
bmatrix = TMIDIX.escore_notes_to_binary_matrix(sp_escore_notes)
|