with gr.Accordion
Browse files
app.py
CHANGED
@@ -435,18 +435,17 @@ if __name__ == "__main__":
|
|
435 |
|
436 |
input_src_midi = gr.File(label="Source MIDI", file_types=[".midi", ".mid", ".kar"])
|
437 |
|
438 |
-
gr.
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
base_MIDI_patch_number = gr.Slider(-1, 127, value=35, step=1, label="Base MIDI patch number")
|
446 |
|
447 |
run_btn = gr.Button("Harmonize Melody", variant="primary")
|
448 |
|
449 |
-
gr.Markdown("
|
450 |
|
451 |
output_summary = gr.Textbox(label="Melody harmonization summary")
|
452 |
|
|
|
435 |
|
436 |
input_src_midi = gr.File(label="Source MIDI", file_types=[".midi", ".mid", ".kar"])
|
437 |
|
438 |
+
with gr.Accordion("## Select harmonization options", open=False):
|
439 |
+
source_melody_transpose_value = gr.Slider(-6, 6, value=0, step=1, label="Source melody transpose value", info="You can transpose source melody by specified number of semitones if the original melody key does not harmonize well")
|
440 |
+
model_top_k_sampling_value = gr.Slider(1, 50, value=25, step=1, label="Model sampling top_k value", info="Decreasing this value may produce better harmonization results in some cases")
|
441 |
+
texture_harmonized_chords = gr.Checkbox(label="Texture harmonized chords", value=True, info="Texture harmonized chords for more pleasant listening")
|
442 |
+
melody_MIDI_patch_number = gr.Slider(0, 127, value=40, step=1, label="Source melody MIDI patch number")
|
443 |
+
harmonized_accompaniment_MIDI_patch_number = gr.Slider(0, 127, value=0, step=1, label="Harmonized accompaniment MIDI patch number")
|
444 |
+
base_MIDI_patch_number = gr.Slider(-1, 127, value=35, step=1, label="Base MIDI patch number")
|
|
|
445 |
|
446 |
run_btn = gr.Button("Harmonize Melody", variant="primary")
|
447 |
|
448 |
+
gr.Markdown(" Harmonization results")
|
449 |
|
450 |
output_summary = gr.Textbox(label="Melody harmonization summary")
|
451 |
|