asigalov61
commited on
Commit
•
06453a0
1
Parent(s):
62f6fc8
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def mix_chord(chord, tones_chord, mel_patch, mel_pitch, next_note_dtime):
|
|
95 |
tclen = len(tones_chord)
|
96 |
|
97 |
if len(tones_chord) == 1:
|
98 |
-
tones_chord = sorted(tones_chord + [tones_chord[0]
|
99 |
|
100 |
if len(cg) > tclen:
|
101 |
tchord = tones_chord + [random.choice(tones_chord) for _ in range(len(cg)-tclen)]
|
|
|
95 |
tclen = len(tones_chord)
|
96 |
|
97 |
if len(tones_chord) == 1:
|
98 |
+
tones_chord = sorted(tones_chord + TMIDIX.transpose_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)]
|