Spaces:
Sleeping
Sleeping
asigalov61
commited on
Commit
•
79a1a3f
1
Parent(s):
b642cc1
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, mel
|
|
119 |
|
120 |
for e in output_score:
|
121 |
if e[3] != 9:
|
122 |
-
e[4] = 127 - e[4]
|
123 |
|
124 |
elif render_type == 'Repair':
|
125 |
output_score = []
|
@@ -135,8 +135,9 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, mel
|
|
135 |
if len(c) > 1:
|
136 |
output_score.extend([c[0]])
|
137 |
for cc in c[1:]:
|
138 |
-
if cc[3] != 9
|
139 |
-
|
|
|
140 |
output_score.extend(drums_events)
|
141 |
else:
|
142 |
|
|
|
119 |
|
120 |
for e in output_score:
|
121 |
if e[3] != 9:
|
122 |
+
e[4] = (127 - e[4]) - 10
|
123 |
|
124 |
elif render_type == 'Repair':
|
125 |
output_score = []
|
|
|
135 |
if len(c) > 1:
|
136 |
output_score.extend([c[0]])
|
137 |
for cc in c[1:]:
|
138 |
+
if cc[3] != 9:
|
139 |
+
if (cc[4] % 12) in new_tones_chord:
|
140 |
+
output_score.extend([cc])
|
141 |
output_score.extend(drums_events)
|
142 |
else:
|
143 |
|