Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def render_midi(input_midi, render_options):
|
|
105 |
patches = [0] * 16
|
106 |
channels = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15]
|
107 |
|
108 |
-
score_patches = sorted(set([e[6] for e in output_score])
|
109 |
|
110 |
for channel, patch in enumerate(channels[:len(score_patches)]):
|
111 |
patches[patch] = score_patches[channel]
|
|
|
105 |
patches = [0] * 16
|
106 |
channels = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15]
|
107 |
|
108 |
+
score_patches = sorted(set([e[6] for e in output_score]))
|
109 |
|
110 |
for channel, patch in enumerate(channels[:len(score_patches)]):
|
111 |
patches[patch] = score_patches[channel]
|