Update app.py
Browse files
app.py
CHANGED
|
@@ -103,9 +103,11 @@ def render_midi(input_midi, render_options):
|
|
| 103 |
new_fn = fn1+'.mid'
|
| 104 |
|
| 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]
|
|
|
|
| 103 |
new_fn = fn1+'.mid'
|
| 104 |
|
| 105 |
patches = [0] * 16
|
| 106 |
+
patches[9] = 9
|
| 107 |
+
|
| 108 |
channels = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15]
|
| 109 |
|
| 110 |
+
score_patches = sorted(set([e[6] for e in output_score if e[3] != 9]))
|
| 111 |
|
| 112 |
for channel, patch in enumerate(channels[:len(score_patches)]):
|
| 113 |
patches[patch] = score_patches[channel]
|