Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
6044d58
1
Parent(s):
49123fc
Update app.py
Browse files
app.py
CHANGED
@@ -128,12 +128,15 @@ def GenerateMIDI(num_tok, idrums, iinstr, input_align):
|
|
128 |
output.append(event)
|
129 |
|
130 |
if input_align == "Start Times":
|
|
|
131 |
output = TMIDIX.align_escore_notes_to_bars(output)
|
132 |
|
133 |
elif input_align == "Start Times and Durations":
|
|
|
134 |
output = TMIDIX.align_escore_notes_to_bars(output, trim_durations=True)
|
135 |
|
136 |
elif input_align == "Start Times and Split Durations":
|
|
|
137 |
output = TMIDIX.align_escore_notes_to_bars(output, split_durations=True)
|
138 |
|
139 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(output,
|
|
|
128 |
output.append(event)
|
129 |
|
130 |
if input_align == "Start Times":
|
131 |
+
output = TMIDIX.recalculate_score_timings(output)
|
132 |
output = TMIDIX.align_escore_notes_to_bars(output)
|
133 |
|
134 |
elif input_align == "Start Times and Durations":
|
135 |
+
output = TMIDIX.recalculate_score_timings(output)
|
136 |
output = TMIDIX.align_escore_notes_to_bars(output, trim_durations=True)
|
137 |
|
138 |
elif input_align == "Start Times and Split Durations":
|
139 |
+
output = TMIDIX.recalculate_score_timings(output)
|
140 |
output = TMIDIX.align_escore_notes_to_bars(output, split_durations=True)
|
141 |
|
142 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(output,
|