asigalov61
commited on
Commit
•
62f6fc8
1
Parent(s):
e47b702
Update app.py
Browse files
app.py
CHANGED
@@ -94,16 +94,14 @@ def mix_chord(chord, tones_chord, mel_patch, mel_pitch, next_note_dtime):
|
|
94 |
|
95 |
tclen = len(tones_chord)
|
96 |
|
97 |
-
tchord = []
|
98 |
-
|
99 |
if len(tones_chord) == 1:
|
100 |
-
|
101 |
-
|
102 |
-
else:
|
103 |
-
tchord = tones_chord
|
104 |
|
105 |
if len(cg) > tclen:
|
106 |
tchord = tones_chord + [random.choice(tones_chord) for _ in range(len(cg)-tclen)]
|
|
|
|
|
|
|
107 |
|
108 |
seen = []
|
109 |
|
|
|
94 |
|
95 |
tclen = len(tones_chord)
|
96 |
|
|
|
|
|
97 |
if len(tones_chord) == 1:
|
98 |
+
tones_chord = sorted(tones_chord + [tones_chord[0] + 7])
|
|
|
|
|
|
|
99 |
|
100 |
if len(cg) > tclen:
|
101 |
tchord = tones_chord + [random.choice(tones_chord) for _ in range(len(cg)-tclen)]
|
102 |
+
|
103 |
+
else:
|
104 |
+
tchord = tones_chord
|
105 |
|
106 |
seen = []
|
107 |
|