Spaces:
Running
Running
asigalov61
commited on
Commit
•
47bb3a8
1
Parent(s):
cf68a1c
Update app.py
Browse files
app.py
CHANGED
@@ -141,22 +141,21 @@ if __name__ == "__main__":
|
|
141 |
print('=' * 70)
|
142 |
|
143 |
soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
|
|
|
144 |
|
145 |
app = gr.Blocks()
|
146 |
with app:
|
147 |
-
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>MIDI
|
148 |
-
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>
|
149 |
gr.Markdown(
|
150 |
-
"![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.MIDI-
|
151 |
-
"This is a demo for TMIDIX Python module from tegridy-tools\n\n"
|
152 |
"Check out [tegridy-tools](https://github.com/asigalov61/tegridy-tools) on GitHub!\n\n"
|
|
|
153 |
)
|
154 |
-
gr.Markdown("## Upload your MIDI or select a sample example MIDI")
|
155 |
|
156 |
input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"])
|
157 |
-
input_channel = gr.Slider(0, 15, value=3, step=1, label="Melody MIDI channel")
|
158 |
-
input_patch = gr.Slider(0, 127, value=40, step=1, label="Melody MIDI patch")
|
159 |
-
input_start_chord = gr.Slider(0, 128, value=0, step=1, label="Melody start chord")
|
160 |
|
161 |
run_btn = gr.Button("add melody", variant="primary")
|
162 |
|
|
|
141 |
print('=' * 70)
|
142 |
|
143 |
soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
|
144 |
+
all_songs = TMIDIX.Tegridy_Any_Pickle_File_Reader('Monster_52905_Mono_Melodies_MIDI_Dataset')
|
145 |
|
146 |
app = gr.Blocks()
|
147 |
with app:
|
148 |
+
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Harmonic Melody MIDI Mixer</h1>")
|
149 |
+
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Harmonize and mix any MIDI melody</h1>")
|
150 |
gr.Markdown(
|
151 |
+
"![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.Harmonic-Melody-MIDI-Mixer&style=flat)\n\n"
|
152 |
+
"This is a demo for TMIDIX Python module from tegridy-tools and Monster Mono Melodies MIDI Dataset\n\n"
|
153 |
"Check out [tegridy-tools](https://github.com/asigalov61/tegridy-tools) on GitHub!\n\n"
|
154 |
+
"Check out [Monster-MIDI-Dataset](https://github.com/asigalov61/Monster-MIDI-Dataset) on GitHub!\n\n"
|
155 |
)
|
156 |
+
gr.Markdown("## Upload your MIDI or select a sample example MIDI below")
|
157 |
|
158 |
input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"])
|
|
|
|
|
|
|
159 |
|
160 |
run_btn = gr.Button("add melody", variant="primary")
|
161 |
|