projectlosangeles
commited on
Commit
•
5ff73ad
1
Parent(s):
9c33c43
Upload 4 files
Browse files
Monster-MIDI-Dataset-main.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65b6f00e480627c897b7f93d26a5971cbedfd3613a2c3ebe867821cc5e73007d
|
3 |
+
size 5810003
|
Monster_MIDI_Dataset_GPU_Search_and_Filter.ipynb
CHANGED
@@ -191,7 +191,7 @@
|
|
191 |
"\n",
|
192 |
"print('=' * 70)\n",
|
193 |
"print('Unzipping Monster MIDI Dataset...Please wait...')\n",
|
194 |
-
"!unzip 'Monster-MIDI-Dataset-Ver-1-0-CC-BY-NC-SA.zip'\n",
|
195 |
"print('=' * 70)\n",
|
196 |
"\n",
|
197 |
"print('Done! Enjoy! :)')\n",
|
@@ -275,7 +275,7 @@
|
|
275 |
"random.shuffle(sigs_data)\n",
|
276 |
"\n",
|
277 |
"signatures_file_names = []\n",
|
278 |
-
"sigs_matrixes = [ [0]*(len(TMIDIX.
|
279 |
"\n",
|
280 |
"idx = 0\n",
|
281 |
"for s in tqdm(sigs_data):\n",
|
@@ -392,13 +392,19 @@
|
|
392 |
"\n",
|
393 |
" #=======================================================\n",
|
394 |
"\n",
|
395 |
-
" raw_score = TMIDIX.midi2single_track_ms_score(
|
396 |
-
" escore = TMIDIX.advanced_score_processor(raw_score,
|
397 |
"\n",
|
398 |
" for e in escore:\n",
|
399 |
" e[1] = int(e[1] / 16)\n",
|
400 |
" e[2] = int(e[2] / 16)\n",
|
401 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
" drums_offset = len(TMIDIX.ALL_CHORDS_SORTED) + 128\n",
|
403 |
"\n",
|
404 |
" src_sigs = []\n",
|
@@ -446,7 +452,7 @@
|
|
446 |
"\n",
|
447 |
" fsig = [list(v) for v in sig_p.items()]\n",
|
448 |
"\n",
|
449 |
-
" src_sig_mat = [0] * (len(TMIDIX.
|
450 |
"\n",
|
451 |
" for s in fsig:\n",
|
452 |
"\n",
|
@@ -672,7 +678,7 @@
|
|
672 |
"\n",
|
673 |
" kilo_chords_file_names = []\n",
|
674 |
"\n",
|
675 |
-
" kilo_chords_matrixes = [ [0]*(len(TMIDIX.
|
676 |
"\n",
|
677 |
" idx = 0\n",
|
678 |
" for kc in tqdm(kilo_chords):\n",
|
@@ -781,13 +787,19 @@
|
|
781 |
"\n",
|
782 |
" #=======================================================\n",
|
783 |
"\n",
|
784 |
-
" raw_score = TMIDIX.midi2single_track_ms_score(
|
785 |
-
" escore = TMIDIX.advanced_score_processor(raw_score,
|
786 |
"\n",
|
787 |
" for e in escore:\n",
|
788 |
" e[1] = int(e[1] / 16)\n",
|
789 |
" e[2] = int(e[2] / 16)\n",
|
790 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
" src_kilo_chords = []\n",
|
792 |
"\n",
|
793 |
" for i in range(-6, 6):\n",
|
@@ -827,7 +839,7 @@
|
|
827 |
"\n",
|
828 |
" else:\n",
|
829 |
"\n",
|
830 |
-
" kilo_chord_matrix = [0] * (len(TMIDIX.
|
831 |
"\n",
|
832 |
" for c in kilo_chord:\n",
|
833 |
" kilo_chord_matrix[c] += 1\n",
|
|
|
191 |
"\n",
|
192 |
"print('=' * 70)\n",
|
193 |
"print('Unzipping Monster MIDI Dataset...Please wait...')\n",
|
194 |
+
"!unzip 'Monster-MIDI-Dataset-Ver-1-0-CC-BY-NC-SA.zip' > /dev/null\n",
|
195 |
"print('=' * 70)\n",
|
196 |
"\n",
|
197 |
"print('Done! Enjoy! :)')\n",
|
|
|
275 |
"random.shuffle(sigs_data)\n",
|
276 |
"\n",
|
277 |
"signatures_file_names = []\n",
|
278 |
+
"sigs_matrixes = [ [0]*(len(TMIDIX.ALL_CHORDS_SORTED)+256) for i in range(len(sigs_data))]\n",
|
279 |
"\n",
|
280 |
"idx = 0\n",
|
281 |
"for s in tqdm(sigs_data):\n",
|
|
|
392 |
"\n",
|
393 |
" #=======================================================\n",
|
394 |
"\n",
|
395 |
+
" raw_score = TMIDIX.midi2single_track_ms_score(f)\n",
|
396 |
+
" escore = TMIDIX.advanced_score_processor(raw_score, return_enhanced_score_notes=True)[0]\n",
|
397 |
"\n",
|
398 |
" for e in escore:\n",
|
399 |
" e[1] = int(e[1] / 16)\n",
|
400 |
" e[2] = int(e[2] / 16)\n",
|
401 |
"\n",
|
402 |
+
" # Sorting by patch, pitch, then by start-time\n",
|
403 |
+
"\n",
|
404 |
+
" escore.sort(key=lambda x: x[6])\n",
|
405 |
+
" escore.sort(key=lambda x: x[4], reverse=True)\n",
|
406 |
+
" escore.sort(key=lambda x: x[1])\n",
|
407 |
+
"\n",
|
408 |
" drums_offset = len(TMIDIX.ALL_CHORDS_SORTED) + 128\n",
|
409 |
"\n",
|
410 |
" src_sigs = []\n",
|
|
|
452 |
"\n",
|
453 |
" fsig = [list(v) for v in sig_p.items()]\n",
|
454 |
"\n",
|
455 |
+
" src_sig_mat = [0] * (len(TMIDIX.ALL_CHORDS_SORTED)+256)\n",
|
456 |
"\n",
|
457 |
" for s in fsig:\n",
|
458 |
"\n",
|
|
|
678 |
"\n",
|
679 |
" kilo_chords_file_names = []\n",
|
680 |
"\n",
|
681 |
+
" kilo_chords_matrixes = [ [0]*(len(TMIDIX.ALL_CHORDS_SORTED)+128) for i in range(len(kilo_chords))]\n",
|
682 |
"\n",
|
683 |
" idx = 0\n",
|
684 |
" for kc in tqdm(kilo_chords):\n",
|
|
|
787 |
"\n",
|
788 |
" #=======================================================\n",
|
789 |
"\n",
|
790 |
+
" raw_score = TMIDIX.midi2single_track_ms_score(f)\n",
|
791 |
+
" escore = TMIDIX.advanced_score_processor(raw_score, return_enhanced_score_notes=True)[0]\n",
|
792 |
"\n",
|
793 |
" for e in escore:\n",
|
794 |
" e[1] = int(e[1] / 16)\n",
|
795 |
" e[2] = int(e[2] / 16)\n",
|
796 |
"\n",
|
797 |
+
" # Sorting by patch, pitch, then by start-time\n",
|
798 |
+
"\n",
|
799 |
+
" escore.sort(key=lambda x: x[6])\n",
|
800 |
+
" escore.sort(key=lambda x: x[4], reverse=True)\n",
|
801 |
+
" escore.sort(key=lambda x: x[1])\n",
|
802 |
+
"\n",
|
803 |
" src_kilo_chords = []\n",
|
804 |
"\n",
|
805 |
" for i in range(-6, 6):\n",
|
|
|
839 |
"\n",
|
840 |
" else:\n",
|
841 |
"\n",
|
842 |
+
" kilo_chord_matrix = [0] * (len(TMIDIX.ALL_CHORDS_SORTED)+128)\n",
|
843 |
"\n",
|
844 |
" for c in kilo_chord:\n",
|
845 |
" kilo_chord_matrix[c] += 1\n",
|
fluidsynth-master.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f16ae34ae87eeb54fef8b8c62579ef39c0b5f3b7094813bd9602812f817f31be
|
3 |
+
size 1965503
|
monster_midi_dataset_gpu_search_and_filter.py
CHANGED
@@ -108,7 +108,7 @@ print('=' * 70)
|
|
108 |
|
109 |
print('=' * 70)
|
110 |
print('Unzipping Monster MIDI Dataset...Please wait...')
|
111 |
-
!unzip 'Monster-MIDI-Dataset-Ver-1-0-CC-BY-NC-SA.zip'
|
112 |
print('=' * 70)
|
113 |
|
114 |
print('Done! Enjoy! :)')
|
@@ -158,7 +158,7 @@ print('=' * 70)
|
|
158 |
random.shuffle(sigs_data)
|
159 |
|
160 |
signatures_file_names = []
|
161 |
-
sigs_matrixes = [ [0]*(len(TMIDIX.
|
162 |
|
163 |
idx = 0
|
164 |
for s in tqdm(sigs_data):
|
@@ -265,13 +265,19 @@ if filez:
|
|
265 |
|
266 |
#=======================================================
|
267 |
|
268 |
-
raw_score = TMIDIX.midi2single_track_ms_score(
|
269 |
-
escore = TMIDIX.advanced_score_processor(raw_score,
|
270 |
|
271 |
for e in escore:
|
272 |
e[1] = int(e[1] / 16)
|
273 |
e[2] = int(e[2] / 16)
|
274 |
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
drums_offset = len(TMIDIX.ALL_CHORDS_SORTED) + 128
|
276 |
|
277 |
src_sigs = []
|
@@ -319,7 +325,7 @@ if filez:
|
|
319 |
|
320 |
fsig = [list(v) for v in sig_p.items()]
|
321 |
|
322 |
-
src_sig_mat = [0] * (len(TMIDIX.
|
323 |
|
324 |
for s in fsig:
|
325 |
|
@@ -528,7 +534,7 @@ else:
|
|
528 |
|
529 |
kilo_chords_file_names = []
|
530 |
|
531 |
-
kilo_chords_matrixes = [ [0]*(len(TMIDIX.
|
532 |
|
533 |
idx = 0
|
534 |
for kc in tqdm(kilo_chords):
|
@@ -627,13 +633,19 @@ if filez:
|
|
627 |
|
628 |
#=======================================================
|
629 |
|
630 |
-
raw_score = TMIDIX.midi2single_track_ms_score(
|
631 |
-
escore = TMIDIX.advanced_score_processor(raw_score,
|
632 |
|
633 |
for e in escore:
|
634 |
e[1] = int(e[1] / 16)
|
635 |
e[2] = int(e[2] / 16)
|
636 |
|
|
|
|
|
|
|
|
|
|
|
|
|
637 |
src_kilo_chords = []
|
638 |
|
639 |
for i in range(-6, 6):
|
@@ -673,7 +685,7 @@ if filez:
|
|
673 |
|
674 |
else:
|
675 |
|
676 |
-
kilo_chord_matrix = [0] * (len(TMIDIX.
|
677 |
|
678 |
for c in kilo_chord:
|
679 |
kilo_chord_matrix[c] += 1
|
|
|
108 |
|
109 |
print('=' * 70)
|
110 |
print('Unzipping Monster MIDI Dataset...Please wait...')
|
111 |
+
!unzip 'Monster-MIDI-Dataset-Ver-1-0-CC-BY-NC-SA.zip' > /dev/null
|
112 |
print('=' * 70)
|
113 |
|
114 |
print('Done! Enjoy! :)')
|
|
|
158 |
random.shuffle(sigs_data)
|
159 |
|
160 |
signatures_file_names = []
|
161 |
+
sigs_matrixes = [ [0]*(len(TMIDIX.ALL_CHORDS_SORTED)+256) for i in range(len(sigs_data))]
|
162 |
|
163 |
idx = 0
|
164 |
for s in tqdm(sigs_data):
|
|
|
265 |
|
266 |
#=======================================================
|
267 |
|
268 |
+
raw_score = TMIDIX.midi2single_track_ms_score(f)
|
269 |
+
escore = TMIDIX.advanced_score_processor(raw_score, return_enhanced_score_notes=True)[0]
|
270 |
|
271 |
for e in escore:
|
272 |
e[1] = int(e[1] / 16)
|
273 |
e[2] = int(e[2] / 16)
|
274 |
|
275 |
+
# Sorting by patch, pitch, then by start-time
|
276 |
+
|
277 |
+
escore.sort(key=lambda x: x[6])
|
278 |
+
escore.sort(key=lambda x: x[4], reverse=True)
|
279 |
+
escore.sort(key=lambda x: x[1])
|
280 |
+
|
281 |
drums_offset = len(TMIDIX.ALL_CHORDS_SORTED) + 128
|
282 |
|
283 |
src_sigs = []
|
|
|
325 |
|
326 |
fsig = [list(v) for v in sig_p.items()]
|
327 |
|
328 |
+
src_sig_mat = [0] * (len(TMIDIX.ALL_CHORDS_SORTED)+256)
|
329 |
|
330 |
for s in fsig:
|
331 |
|
|
|
534 |
|
535 |
kilo_chords_file_names = []
|
536 |
|
537 |
+
kilo_chords_matrixes = [ [0]*(len(TMIDIX.ALL_CHORDS_SORTED)+128) for i in range(len(kilo_chords))]
|
538 |
|
539 |
idx = 0
|
540 |
for kc in tqdm(kilo_chords):
|
|
|
633 |
|
634 |
#=======================================================
|
635 |
|
636 |
+
raw_score = TMIDIX.midi2single_track_ms_score(f)
|
637 |
+
escore = TMIDIX.advanced_score_processor(raw_score, return_enhanced_score_notes=True)[0]
|
638 |
|
639 |
for e in escore:
|
640 |
e[1] = int(e[1] / 16)
|
641 |
e[2] = int(e[2] / 16)
|
642 |
|
643 |
+
# Sorting by patch, pitch, then by start-time
|
644 |
+
|
645 |
+
escore.sort(key=lambda x: x[6])
|
646 |
+
escore.sort(key=lambda x: x[4], reverse=True)
|
647 |
+
escore.sort(key=lambda x: x[1])
|
648 |
+
|
649 |
src_kilo_chords = []
|
650 |
|
651 |
for i in range(-6, 6):
|
|
|
685 |
|
686 |
else:
|
687 |
|
688 |
+
kilo_chord_matrix = [0] * (len(TMIDIX.ALL_CHORDS_SORTED)+128)
|
689 |
|
690 |
for c in kilo_chord:
|
691 |
kilo_chord_matrix[c] += 1
|