Spaces:
Running
Running
asigalov61
commited on
Commit
•
5d2c281
1
Parent(s):
f742df5
Update app.py
Browse files
app.py
CHANGED
@@ -261,6 +261,8 @@ def Mix_Chords(input_output_as_solo_piano,
|
|
261 |
# =================================================================================================
|
262 |
|
263 |
if __name__ == "__main__":
|
|
|
|
|
264 |
|
265 |
PDT = timezone('US/Pacific')
|
266 |
|
@@ -268,7 +270,11 @@ if __name__ == "__main__":
|
|
268 |
print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
269 |
print('=' * 70)
|
270 |
|
|
|
|
|
271 |
soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
|
|
|
|
|
272 |
|
273 |
all_chords_chunks = TMIDIX.Tegridy_Any_Pickle_File_Reader('Los_Angeles_Chords_Songs_MIDI_Dataset_79898_128_256')
|
274 |
|
@@ -277,6 +283,10 @@ if __name__ == "__main__":
|
|
277 |
|
278 |
#=====================================================================
|
279 |
|
|
|
|
|
|
|
|
|
280 |
chords_drums_counts = []
|
281 |
|
282 |
for a in all_chords_chunks:
|
@@ -311,10 +321,13 @@ if __name__ == "__main__":
|
|
311 |
|
312 |
print('Done!')
|
313 |
print('=' * 70)
|
|
|
|
|
314 |
|
315 |
app = gr.Blocks()
|
316 |
|
317 |
with app:
|
|
|
318 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>MIDI Chords Mixer</h1>")
|
319 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Mix chords from one MIDI to another MIDI</h1>")
|
320 |
gr.Markdown(
|
|
|
261 |
# =================================================================================================
|
262 |
|
263 |
if __name__ == "__main__":
|
264 |
+
|
265 |
+
#=====================================================================
|
266 |
|
267 |
PDT = timezone('US/Pacific')
|
268 |
|
|
|
270 |
print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
271 |
print('=' * 70)
|
272 |
|
273 |
+
#=====================================================================
|
274 |
+
|
275 |
soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
|
276 |
+
|
277 |
+
#=====================================================================
|
278 |
|
279 |
all_chords_chunks = TMIDIX.Tegridy_Any_Pickle_File_Reader('Los_Angeles_Chords_Songs_MIDI_Dataset_79898_128_256')
|
280 |
|
|
|
283 |
|
284 |
#=====================================================================
|
285 |
|
286 |
+
chunks_lens = [len(a[1]) for a in all_chords_chunks]
|
287 |
+
|
288 |
+
#=====================================================================
|
289 |
+
|
290 |
chords_drums_counts = []
|
291 |
|
292 |
for a in all_chords_chunks:
|
|
|
321 |
|
322 |
print('Done!')
|
323 |
print('=' * 70)
|
324 |
+
|
325 |
+
#=====================================================================
|
326 |
|
327 |
app = gr.Blocks()
|
328 |
|
329 |
with app:
|
330 |
+
|
331 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>MIDI Chords Mixer</h1>")
|
332 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Mix chords from one MIDI to another MIDI</h1>")
|
333 |
gr.Markdown(
|