asigalov61 commited on
Commit
19d483f
·
verified ·
1 Parent(s): 8a9f620

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -143,8 +143,7 @@ def Render_MIDI(input_midi,
143
  output_score = TMIDIX.reverse_enhanced_score_notes(escore)
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':
@@ -154,6 +153,9 @@ def Render_MIDI(input_midi,
154
  elif render_type == 'Remove Duplicate Pitches':
155
  output_score = TMIDIX.remove_duplicate_pitches_from_escore_notes(escore)
156
 
 
 
 
157
  elif render_type == 'Humanize Velocities':
158
  output_score = TMIDIX.humanize_velocities_in_escore_notes(escore)
159
 
@@ -403,6 +405,7 @@ if __name__ == "__main__":
403
  "Longest Repeating Phrase",
404
  "Multi-Instrumental Summary",
405
  "Solo Piano Summary",
 
406
  "Humanize Velocities",
407
  "Add Drum Track"
408
  ],
 
143
  output_score = TMIDIX.reverse_enhanced_score_notes(escore)
144
 
145
  elif render_type == 'Repair Durations':
146
+ output_score = TMIDIX.even_out_durations_in_escore_notes(escore)
 
147
  output_score = TMIDIX.fix_escore_notes_durations(output_score, min_notes_gap=0)
148
 
149
  elif render_type == 'Repair Chords':
 
153
  elif render_type == 'Remove Duplicate Pitches':
154
  output_score = TMIDIX.remove_duplicate_pitches_from_escore_notes(escore)
155
 
156
+ elif render_type == 'Quantize':
157
+ output_score = TMIDIX.quantize_escore_notes(escore)
158
+
159
  elif render_type == 'Humanize Velocities':
160
  output_score = TMIDIX.humanize_velocities_in_escore_notes(escore)
161
 
 
405
  "Longest Repeating Phrase",
406
  "Multi-Instrumental Summary",
407
  "Solo Piano Summary",
408
+ "Quantize",
409
  "Humanize Velocities",
410
  "Add Drum Track"
411
  ],