Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
6ea88e7
1
Parent(s):
06453a0
Update app.py
Browse files
app.py
CHANGED
@@ -94,9 +94,6 @@ def mix_chord(chord, tones_chord, mel_patch, mel_pitch, next_note_dtime):
|
|
94 |
|
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)]
|
102 |
|
@@ -425,7 +422,7 @@ if __name__ == "__main__":
|
|
425 |
|
426 |
gr.Markdown("## Select mixing options")
|
427 |
|
428 |
-
input_find_best_match = gr.Checkbox(label="Find best match", value=
|
429 |
input_adjust_melody_notes_durations = gr.Checkbox(label="Adjust melody notes durations", value=False)
|
430 |
input_adjust_accompaniment_notes_durations = gr.Checkbox(label="Adjust accompaniment notes durations", value=False)
|
431 |
input_output_as_solo_piano = gr.Checkbox(label="Output as Solo Piano", value=False)
|
|
|
94 |
|
95 |
tclen = len(tones_chord)
|
96 |
|
|
|
|
|
|
|
97 |
if len(cg) > tclen:
|
98 |
tchord = tones_chord + [random.choice(tones_chord) for _ in range(len(cg)-tclen)]
|
99 |
|
|
|
422 |
|
423 |
gr.Markdown("## Select mixing options")
|
424 |
|
425 |
+
input_find_best_match = gr.Checkbox(label="Find best match", value=False)
|
426 |
input_adjust_melody_notes_durations = gr.Checkbox(label="Adjust melody notes durations", value=False)
|
427 |
input_adjust_accompaniment_notes_durations = gr.Checkbox(label="Adjust accompaniment notes durations", value=False)
|
428 |
input_output_as_solo_piano = gr.Checkbox(label="Output as Solo Piano", value=False)
|