asigalov61 commited on
Commit
884a083
·
verified ·
1 Parent(s): 27598f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -125,6 +125,10 @@ def Render_MIDI(input_midi,
125
  fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]
126
  output_score = TMIDIX.flatten(fixed_cscore)
127
 
 
 
 
 
128
  print('Done processing!')
129
  print('=' * 70)
130
 
@@ -361,7 +365,8 @@ if __name__ == "__main__":
361
  "Repair Chords",
362
  "Longest Repeating Phrase",
363
  "Multi-Instrumental Summary",
364
- "Solo Piano Summary"
 
365
  ],
366
  label="Render type",
367
  value="Render as-is"
 
125
  fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]
126
  output_score = TMIDIX.flatten(fixed_cscore)
127
 
128
+ elif render_type == "Add Drums Track":
129
+ nd_escore = [e for e in escore if e[3] != 9]
130
+ output_score = TMIDIX.advanced_add_drums_to_escore_notes(nd_escore)
131
+
132
  print('Done processing!')
133
  print('=' * 70)
134
 
 
365
  "Repair Chords",
366
  "Longest Repeating Phrase",
367
  "Multi-Instrumental Summary",
368
+ "Solo Piano Summary",
369
+ "Add Drums Track"
370
  ],
371
  label="Render type",
372
  value="Render as-is"