Update app.py
Browse files
app.py
CHANGED
@@ -127,25 +127,6 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
|
|
127 |
|
128 |
for c in cscore:
|
129 |
output_score.extend(c)
|
130 |
-
''' tones_chord = sorted(set([t[4] % 12 for t in c if t[3] != 9]))
|
131 |
-
drums_events = [t for t in c if t[3] == 9]
|
132 |
-
|
133 |
-
if tones_chord:
|
134 |
-
|
135 |
-
new_tones_chord = TMIDIX.check_and_fix_tones_chord(tones_chord)
|
136 |
-
|
137 |
-
if len(c) > 1:
|
138 |
-
output_score.extend([c[0]])
|
139 |
-
for cc in c[1:]:
|
140 |
-
if cc[3] != 9:
|
141 |
-
if (cc[4] % 12) in new_tones_chord:
|
142 |
-
output_score.extend([cc])
|
143 |
-
output_score.extend(drums_events)
|
144 |
-
else:
|
145 |
-
|
146 |
-
output_score.extend([c[0]] + drums_events)
|
147 |
-
else:
|
148 |
-
output_score.extend(c)'''
|
149 |
|
150 |
print('Done processing!')
|
151 |
print('=' * 70)
|
|
|
127 |
|
128 |
for c in cscore:
|
129 |
output_score.extend(c)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
print('Done processing!')
|
132 |
print('=' * 70)
|