asigalov61 commited on
Commit
4955f6c
·
verified ·
1 Parent(s): 3ddc763

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -133,7 +133,7 @@ def Render_MIDI(input_midi,
133
  output_score = copy.deepcopy(escore)
134
 
135
  if render_type == "Extract melody":
136
- output_score = TMIDIX.add_melody_to_enhanced_score_notes(escore, return_melody=True)
137
  output_score = TMIDIX.recalculate_score_timings(output_score)
138
 
139
  elif render_type == "Flip":
@@ -144,6 +144,8 @@ def Render_MIDI(input_midi,
144
 
145
  elif render_type == 'Repair Durations':
146
  output_score = TMIDIX.fix_escore_notes_durations(escore, min_notes_gap=0)
 
 
147
 
148
  elif render_type == 'Repair Chords':
149
  fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]
 
133
  output_score = copy.deepcopy(escore)
134
 
135
  if render_type == "Extract melody":
136
+ output_score = TMIDIX.add_expressive_melody_to_enhanced_score_notes(aux_escore_notes, return_melody=True)
137
  output_score = TMIDIX.recalculate_score_timings(output_score)
138
 
139
  elif render_type == "Flip":
 
144
 
145
  elif render_type == 'Repair Durations':
146
  output_score = TMIDIX.fix_escore_notes_durations(escore, min_notes_gap=0)
147
+ output_score = TMIDIX.even_out_durations_in_escore_notes(output_score)
148
+ output_score = TMIDIX.fix_escore_notes_durations(output_score, min_notes_gap=0)
149
 
150
  elif render_type == 'Repair Chords':
151
  fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]