asigalov61 commited on
Commit
d46a61a
1 Parent(s): 9918a6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -125,12 +125,15 @@ def render_midi(input_midi,
125
  output_score = TMIDIX.transpose_escore_notes_to_pitch(output_score)
126
 
127
  if render_align == "Start Times":
 
128
  output_score = TMIDIX.align_escore_notes_to_bars(output_score)
129
 
130
  elif render_align == "Start Times and Durations":
 
131
  output_score = TMIDIX.align_escore_notes_to_bars(output_score, trim_durations=True)
132
 
133
  elif render_align == "Start Times and Split Durations":
 
134
  output_score = TMIDIX.align_escore_notes_to_bars(output_score, split_durations=True)
135
 
136
  SONG, patches, overflow_patches = TMIDIX.patch_enhanced_score_notes(output_score)
 
125
  output_score = TMIDIX.transpose_escore_notes_to_pitch(output_score)
126
 
127
  if render_align == "Start Times":
128
+ output_score = TMIDIX.recalculate_score_timings(output_score)
129
  output_score = TMIDIX.align_escore_notes_to_bars(output_score)
130
 
131
  elif render_align == "Start Times and Durations":
132
+ output_score = TMIDIX.recalculate_score_timings(output_score)
133
  output_score = TMIDIX.align_escore_notes_to_bars(output_score, trim_durations=True)
134
 
135
  elif render_align == "Start Times and Split Durations":
136
+ output_score = TMIDIX.recalculate_score_timings(output_score)
137
  output_score = TMIDIX.align_escore_notes_to_bars(output_score, split_durations=True)
138
 
139
  SONG, patches, overflow_patches = TMIDIX.patch_enhanced_score_notes(output_score)