Update app.py
Browse files
app.py
CHANGED
|
@@ -172,7 +172,9 @@ def render_midi(input_midi,
|
|
| 172 |
output_score = TMIDIX.align_escore_notes_to_bars(output_score, split_durations=True)
|
| 173 |
|
| 174 |
if render_type == "Summarize" and render_summary_type == 'Principal Phrase':
|
| 175 |
-
|
|
|
|
|
|
|
| 176 |
|
| 177 |
if render_type == "Summarize" and render_summary_type == 'Multi-Instrumental':
|
| 178 |
zscore = TMIDIX.recalculate_score_timings(output_score)
|
|
|
|
| 172 |
output_score = TMIDIX.align_escore_notes_to_bars(output_score, split_durations=True)
|
| 173 |
|
| 174 |
if render_type == "Summarize" and render_summary_type == 'Principal Phrase':
|
| 175 |
+
zscore = TMIDIX.recalculate_score_timings(output_score)
|
| 176 |
+
lrno_score = TMIDIX.escore_notes_lrno_pattern(zscore)
|
| 177 |
+
output_score = TMIDIX.recalculate_score_timings(lrno_score)
|
| 178 |
|
| 179 |
if render_type == "Summarize" and render_summary_type == 'Multi-Instrumental':
|
| 180 |
zscore = TMIDIX.recalculate_score_timings(output_score)
|