Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,9 +128,10 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, mel
|
|
| 128 |
tones_chord = sorted(set([t[4] % 12 for t in c if t[3] != 9]))
|
| 129 |
drums_events = [t for t in c if t[3] == 9]
|
| 130 |
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
|
|
|
| 134 |
if len(c) > 1:
|
| 135 |
output_score.extend([c[0]])
|
| 136 |
for cc in c[1:]:
|
|
|
|
| 128 |
tones_chord = sorted(set([t[4] % 12 for t in c if t[3] != 9]))
|
| 129 |
drums_events = [t for t in c if t[3] == 9]
|
| 130 |
|
| 131 |
+
if tones_chord:
|
| 132 |
+
|
| 133 |
+
new_tones_chord = TMIDIX.check_and_fix_tones_chord(tones_chord)
|
| 134 |
+
|
| 135 |
if len(c) > 1:
|
| 136 |
output_score.extend([c[0]])
|
| 137 |
for cc in c[1:]:
|