asigalov61 commited on
Commit
8a9f620
·
verified ·
1 Parent(s): 582fb7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -153,6 +153,9 @@ def Render_MIDI(input_midi,
153
 
154
  elif render_type == 'Remove Duplicate Pitches':
155
  output_score = TMIDIX.remove_duplicate_pitches_from_escore_notes(escore)
 
 
 
156
 
157
  elif render_type == "Add Drum Track":
158
  nd_escore = [e for e in escore if e[3] != 9]
@@ -400,6 +403,7 @@ if __name__ == "__main__":
400
  "Longest Repeating Phrase",
401
  "Multi-Instrumental Summary",
402
  "Solo Piano Summary",
 
403
  "Add Drum Track"
404
  ],
405
  label="Render type",
 
153
 
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
 
160
  elif render_type == "Add Drum Track":
161
  nd_escore = [e for e in escore if e[3] != 9]
 
403
  "Longest Repeating Phrase",
404
  "Multi-Instrumental Summary",
405
  "Solo Piano Summary",
406
+ "Humanize Velocities",
407
  "Add Drum Track"
408
  ],
409
  label="Render type",