Update app.py
Browse files142 unmodified lines143144145146147148149150151152153154155237 unmodified lines393394395396397398399400401402142 unmodified linesoutput_score = TMIDIX.reverse_enhanced_score_notes(escore)elif render_type == 'Repair Durations':output_score = TMIDIX.fix_escore_notes_durations(escore)elif render_type == 'Repair Chords':fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]output_score = TMIDIX.flatten(fixed_cscore)elif render_type == "Add Drums Track":nd_escore = [e for e in escore if e[3] != 9]nd_escore = TMIDIX.augment_enhanced_score_notes(nd_escore)output_score = TMIDIX.advanced_add_drums_to_escore_notes(nd_escore)237 unmodified lines"Reverse","Repair Durations","Repair Chords","Longest Repeating Phrase","Multi-Instrumental Summary","Solo Piano Summary","Add Drums Track"],label="Render type",value="Render as-is"142 unmodified lines143144145146147148149150151152153154155156157158237 unmodified lines396397398399400401402403404405406142 unmodified linesoutput_score = TMIDIX.reverse_enhanced_score_notes(escore)elif render_type == 'Repair Durations':output_score = TMIDIX.fix_escore_notes_durations(escore, min_notes_gap=0)elif render_type == 'Repair Chords':fixed_cscore = TMIDIX.advanced_check_and_fix_chords_in_chordified_score(cscore)[0]output_score = TMIDIX.flatten(fixed_cscore)elif render_type == 'Remove Duplicate Pitches':output_score = TMIDIX.remove_duplicate_pitches_from_escore_notes(escore)elif render_type == "Add Drum Track":nd_escore = [e for e in escore if e[3] != 9]nd_escore = TMIDIX.augment_enhanced_score_notes(nd_escore)output_score = TMIDIX.advanced_add_drums_to_escore_notes(nd_escore)237 unmodified lines"Reverse","Repair Durations","Repair Chords","Remove Duplicate Pitches""Longest Repeating Phrase","Multi-Instrumental Summary","Solo Piano Summary","Add Drum Track"],label="Render type",value="Render as-is"
app.py+7-3