asigalov61
commited on
Commit
•
da26062
1
Parent(s):
b8f21b1
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ def MixMelody(input_midi):
|
|
131 |
|
132 |
patches = sorted(set([e[6] for e in c]))
|
133 |
|
134 |
-
|
135 |
|
136 |
mixed_song.extend(mix_chord(c, src_harm_tones_chords[midx], trg_patch, src_melody_pitches[midx]))
|
137 |
|
|
|
131 |
|
132 |
patches = sorted(set([e[6] for e in c]))
|
133 |
|
134 |
+
if trg_patch in patches:
|
135 |
|
136 |
mixed_song.extend(mix_chord(c, src_harm_tones_chords[midx], trg_patch, src_melody_pitches[midx]))
|
137 |
|