Update app.py
Browse files
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",
|