asigalov61/Guided-Accompaniment-Transformer
Updated
• 1
md5 string | melody sequence | melody_accompaniment sequence |
|---|---|---|
bea85b791ea6510142e424f6e5096e00 | [
0,
263,
574,
31,
263,
574,
31,
263,
574,
31,
263,
574,
16,
263,
576,
16,
263,
577,
31,
263,
577,
15,
263,
579,
16,
263,
576,
31,
263,
576,
16,
263,
572,
16,
263,
574,
31,
263,
574,
31,
263,
574,
31,
263,
574,
16,
263,
576,... | [
0,
263,
574,
263,
2008,
263,
2009,
263,
2010,
263,
2011,
263,
2012,
263,
2013,
263,
2014,
7,
263,
2011,
263,
2014,
8,
263,
2008,
263,
2009,
263,
2010,
263,
2011,
263,
2012,
263,
2013,
263,
2014,
16,
263,
574,
263,
2008,
263,
2009,... |
bea9ad114caaf5453972331e474fcaa2 | [
0,
263,
577,
21,
263,
580,
21,
263,
577,
14,
263,
576,
21,
263,
580,
21,
263,
576,
15,
263,
573,
21,
263,
577,
21,
263,
573,
14,
263,
572,
21,
263,
577,
21,
263,
572,
15,
263,
573,
21,
263,
577,
21,
263,
573,
14,
263,
572,... | [
0,
263,
577,
263,
1193,
263,
1958,
312,
1974,
312,
1976,
312,
1979,
312,
1983,
7,
263,
1192,
7,
263,
1193,
7,
263,
580,
263,
1195,
7,
263,
1196,
263,
1959,
7,
263,
1195,
7,
263,
577,
263,
1196,
7,
263,
1198,
7,
263,
576,
263,
... |
beaa4be41d69f3a84c651a363ad3d327 | [
0,
289,
578,
34,
272,
574,
17,
272,
578,
17,
272,
580,
17,
272,
581,
17,
272,
583,
17,
272,
581,
17,
289,
580,
34,
272,
576,
17,
272,
580,
17,
272,
581,
17,
263,
583,
8,
264,
585,
9,
263,
588,
8,
264,
583,
9,
263,
580,
8... | [
0,
289,
578,
392,
1062,
392,
1069,
392,
1074,
290,
1958,
290,
1975,
17,
264,
1955,
8,
273,
1955,
9,
272,
574,
290,
1958,
290,
1975,
8,
264,
1955,
9,
272,
578,
290,
1955,
17,
272,
580,
290,
1958,
290,
1975,
17,
272,
581,
264,
1... |
bea8c08ae1eb72679566dfe1d721cb1d | [
0,
263,
574,
15,
263,
586,
22,
263,
581,
22,
263,
578,
15,
263,
579,
162,
263,
574,
15,
263,
586,
22,
263,
588,
22,
263,
590,
15,
262,
591,
7,
263,
590,
15,
263,
586,
22,
263,
583,
15,
263,
586,
103,
263,
574,
15,
263,
586... | [
0,
263,
574,
263,
2000,
15,
263,
586,
263,
1190,
263,
1955,
263,
1977,
263,
2000,
14,
263,
2000,
8,
263,
581,
263,
1190,
7,
263,
1960,
263,
1969,
263,
1971,
263,
1973,
263,
1975,
263,
1977,
263,
1979,
263,
2000,
15,
263,
578,
26... |
beaad8c389e6264b8269e252b3e4d888 | [
0,
263,
579,
8,
264,
583,
9,
263,
583,
8,
264,
581,
9,
264,
579,
255,
259,
572,
4,
259,
576,
4,
259,
574,
4,
260,
577,
5,
259,
576,
4,
259,
579,
4,
259,
577,
4,
260,
574,
5,
259,
576,
4,
259,
572,
4,
259,
574,
4,
260,
... | [
0,
263,
579,
264,
1189,
264,
1191,
8,
264,
583,
264,
1189,
264,
1191,
9,
263,
583,
264,
1096,
264,
1189,
264,
1191,
8,
264,
581,
264,
1189,
264,
1191,
9,
264,
579,
264,
1189,
264,
1191,
8,
264,
1180,
264,
1947,
264,
1959,
264,
... |
bea9a7e7eecfce0dbbe38df56c4fb5a1 | [
0,
270,
576,
15,
267,
581,
12,
263,
583,
20,
274,
583,
19,
283,
585,
28,
338,
581,
83,
282,
580,
27,
271,
578,
16,
319,
580,
67,
267,
580,
16,
270,
580,
15,
287,
578,
32,
263,
576,
16,
274,
576,
19,
283,
574,
28,
271,
573,... | [
0,
270,
576,
3,
382,
1085,
12,
267,
581,
4,
263,
1962,
8,
263,
583,
20,
274,
583,
19,
283,
585,
28,
338,
581,
51,
267,
1962,
32,
282,
580,
382,
1073,
378,
1088,
382,
1177,
15,
350,
1080,
12,
271,
578,
4,
350,
1085,
12,
319,
... |
bea9846f606183426b61accb8ab0484d | [
0,
268,
562,
13,
267,
562,
12,
268,
562,
13,
267,
562,
12,
268,
562,
13,
267,
562,
12,
268,
562,
13,
267,
562,
12,
268,
562,
13,
267,
562,
12,
268,
562,
13,
267,
562,
12,
268,
562,
13,
267,
562,
12,
268,
562,
13,
267,
562,... | [
0,
268,
562,
268,
693,
268,
1345,
13,
267,
562,
268,
697,
268,
1349,
12,
268,
562,
268,
693,
268,
1345,
13,
267,
562,
268,
690,
268,
1342,
12,
268,
562,
268,
693,
268,
1345,
13,
267,
562,
268,
697,
268,
1349,
12,
268,
562,
268... |
bea9846f606183426b61accb8ab0484d | [
0,
318,
594,
100,
318,
593,
100,
318,
594,
100,
318,
593,
255,
331,
574,
87,
331,
574,
88,
331,
574,
87,
331,
574,
88,
317,
570,
62,
280,
569,
25,
331,
567,
88,
331,
569,
87,
318,
569,
88,
331,
574,
87,
331,
574,
88,
331,
... | [
0,
318,
594,
268,
698,
268,
710,
268,
714,
268,
1198,
268,
1362,
25,
268,
698,
268,
707,
268,
710,
268,
714,
268,
1198,
268,
1359,
268,
1362,
13,
268,
707,
268,
710,
268,
714,
268,
1359,
268,
1362,
12,
268,
698,
268,
707,
268,
... |
bea9846f606183426b61accb8ab0484d | [
0,
267,
586,
12,
268,
586,
13,
267,
581,
12,
268,
581,
13,
267,
578,
12,
268,
581,
13,
267,
584,
12,
318,
582,
138,
267,
584,
12,
268,
584,
13,
267,
579,
12,
268,
579,
13,
267,
576,
12,
268,
579,
13,
267,
582,
12,
318,
581... | [
0,
267,
586,
268,
702,
268,
1366,
12,
268,
586,
268,
702,
268,
1366,
13,
267,
581,
268,
702,
268,
1361,
12,
268,
581,
268,
702,
268,
1361,
13,
267,
578,
268,
702,
268,
1358,
12,
268,
581,
268,
702,
268,
1361,
13,
267,
584,
268... |
beaa45dbca75c52b9cc54e2e3c33953f | [
0,
262,
561,
13,
262,
568,
14,
262,
573,
13,
262,
580,
14,
268,
578,
13,
264,
576,
9,
260,
575,
5,
262,
576,
13,
262,
580,
16,
259,
578,
6,
260,
576,
5,
268,
575,
13,
296,
576,
41,
262,
566,
13,
262,
573,
14,
262,
578,
1... | [
0,
262,
561,
309,
1189,
259,
1353,
259,
1353,
262,
1457,
262,
1585,
7,
258,
1360,
258,
1360,
6,
262,
568,
260,
1365,
260,
1365,
262,
1457,
262,
1592,
9,
258,
1360,
258,
1360,
5,
262,
573,
262,
1353,
262,
1353,
269,
1464,
262,
15... |
bea8a7a89f3a33261347b130e22dbb2b | [
0,
270,
589,
16,
297,
589,
45,
283,
589,
30,
282,
592,
30,
283,
590,
31,
282,
590,
30,
267,
589,
15,
294,
585,
76,
283,
589,
30,
265,
589,
15,
296,
592,
46,
279,
590,
30,
283,
590,
30,
264,
589,
15,
285,
589,
30,
285,
585,... | [
0,
270,
589,
263,
1080,
263,
1085,
262,
1089,
16,
297,
589,
260,
1080,
261,
1085,
260,
1089,
15,
260,
1080,
261,
1085,
261,
1087,
260,
1089,
15,
264,
1080,
263,
1085,
263,
1089,
15,
283,
589,
259,
1080,
261,
1085,
261,
1087,
259,
... |
bea8146733937c286f18123d5a55f336 | [
0,
283,
581,
28,
268,
582,
13,
269,
574,
14,
269,
579,
14,
269,
582,
14,
269,
584,
14,
269,
577,
14,
269,
581,
14,
282,
582,
27,
269,
579,
14,
269,
582,
14,
269,
586,
14,
269,
587,
14,
269,
579,
14,
269,
586,
14,
269,
584,... | [
0,
283,
581,
283,
697,
262,
1959,
14,
262,
1966,
14,
268,
582,
269,
683,
297,
683,
269,
698,
262,
1955,
13,
269,
574,
269,
690,
262,
1958,
7,
269,
683,
7,
269,
579,
297,
683,
269,
695,
262,
1955,
7,
262,
683,
7,
269,
582,
28... |
beab854b97bcb76a19d4fe88c645b295 | [
0,
263,
600,
8,
264,
603,
9,
263,
605,
8,
264,
608,
9,
263,
610,
8,
264,
612,
9,
264,
615,
17,
263,
615,
8,
264,
613,
17,
264,
612,
17,
264,
610,
9,
289,
612,
34,
272,
608,
17,
264,
610,
17,
272,
607,
17,
264,
608,
9,
... | [
0,
263,
600,
264,
844,
264,
856,
8,
264,
603,
264,
847,
264,
859,
9,
263,
605,
264,
849,
264,
861,
8,
264,
608,
264,
852,
264,
864,
9,
263,
610,
264,
854,
264,
866,
8,
264,
612,
264,
856,
264,
868,
9,
264,
615,
264,
859,
2... |
bea9ee3185f509cb4b51235538cf9c8b | [
0,
270,
588,
17,
260,
586,
15,
269,
589,
16,
309,
588,
75,
268,
588,
14,
262,
586,
15,
269,
589,
15,
262,
588,
15,
269,
588,
15,
262,
586,
15,
268,
589,
16,
263,
588,
16,
269,
588,
14,
261,
586,
16,
269,
589,
15,
305,
588,... | [
0,
270,
588,
17,
260,
586,
14,
488,
968,
489,
972,
501,
975,
286,
1188,
265,
1955,
259,
1971,
1,
269,
589,
14,
259,
1971,
2,
309,
588,
13,
264,
1957,
259,
1971,
16,
260,
1188,
260,
1955,
259,
1971,
15,
287,
1183,
260,
1955,
25... |
bea9ee3185f509cb4b51235538cf9c8b | [
0,
259,
579,
15,
259,
579,
15,
260,
579,
15,
260,
579,
16,
260,
579,
15,
260,
579,
15,
260,
579,
15,
268,
581,
16,
268,
583,
30,
316,
586,
76,
268,
581,
15,
267,
583,
31,
318,
586,
75,
269,
584,
16,
268,
583,
15,
259,
581,... | [
0,
259,
579,
15,
259,
579,
15,
260,
579,
15,
260,
579,
16,
260,
579,
15,
260,
579,
15,
260,
579,
15,
268,
581,
268,
678,
289,
1190,
265,
1955,
259,
1971,
16,
268,
583,
258,
697,
258,
700,
258,
702,
259,
705,
259,
1971,
7,
26... |
beacc3925d3685722705ce5222084309 | [
0,
263,
587,
8,
264,
587,
9,
263,
587,
8,
264,
587,
43,
263,
587,
8,
264,
587,
9,
263,
587,
8,
264,
587,
43,
263,
587,
8,
264,
587,
9,
263,
587,
8,
264,
587,
43,
263,
587,
8,
264,
587,
9,
263,
587,
8,
264,
587,
43,
263... | [
0,
263,
587,
264,
664,
264,
1955,
264,
1956,
264,
1964,
8,
264,
587,
9,
263,
587,
264,
1964,
8,
264,
587,
9,
264,
666,
264,
1221,
264,
1960,
264,
1964,
17,
264,
1221,
264,
1964,
264,
1970,
8,
264,
1970,
9,
263,
587,
264,
664,
... |
beacf682b51f35de483cadd369d81086 | [
0,
264,
569,
17,
264,
576,
17,
263,
574,
8,
264,
574,
34,
264,
573,
34,
264,
571,
26,
264,
564,
17,
264,
566,
17,
263,
567,
8,
264,
569,
34,
264,
569,
34,
264,
569,
26,
264,
569,
17,
264,
576,
17,
263,
574,
8,
264,
574,
... | [
0,
264,
569,
264,
841,
264,
2002,
8,
264,
2007,
9,
264,
576,
17,
263,
574,
264,
841,
8,
264,
574,
264,
2006,
26,
264,
841,
8,
264,
573,
264,
2007,
26,
264,
841,
8,
264,
571,
264,
2006,
9,
264,
2002,
8,
264,
2003,
9,
264,
5... |
beac415963ceffe9aa8287920c526987 | [
0,
270,
580,
15,
270,
583,
15,
270,
587,
15,
270,
583,
15,
270,
580,
15,
270,
583,
15,
270,
587,
15,
270,
583,
15,
270,
580,
15,
270,
585,
15,
270,
588,
15,
270,
585,
15,
270,
579,
15,
270,
582,
15,
270,
587,
15,
270,
582,... | [
0,
270,
580,
271,
684,
271,
691,
271,
696,
316,
1848,
271,
1953,
271,
1956,
15,
270,
583,
263,
699,
271,
1956,
271,
1958,
7,
263,
703,
8,
270,
587,
263,
703,
263,
708,
263,
711,
286,
1848,
271,
1953,
271,
1956,
271,
1958,
271,
... |
beac107b5a4dc0f8145a2e4b45181edf | [
0,
262,
570,
12,
265,
570,
13,
270,
572,
38,
270,
575,
25,
274,
575,
41,
262,
570,
11,
263,
572,
13,
266,
572,
13,
264,
570,
12,
271,
575,
51,
263,
570,
13,
266,
572,
13,
263,
570,
14,
267,
572,
14,
263,
570,
12,
262,
572,... | [
0,
262,
570,
11,
265,
1082,
257,
1960,
257,
1966,
1,
265,
570,
268,
1070,
268,
1186,
12,
265,
1079,
257,
1958,
257,
1966,
1,
270,
572,
264,
1067,
266,
1183,
6,
257,
1958,
6,
265,
1072,
270,
1079,
267,
1084,
270,
1188,
257,
1955,... |
beaa37313dc43f3eb3c967331c14144e | [
0,
263,
586,
8,
264,
584,
9,
263,
581,
8,
264,
584,
9,
263,
586,
8,
264,
584,
9,
263,
586,
8,
264,
579,
9,
263,
586,
8,
264,
588,
9,
263,
589,
8,
264,
586,
17,
264,
584,
9,
263,
584,
8,
264,
581,
9,
263,
581,
8,
264,
... | [
0,
263,
586,
290,
702,
290,
705,
290,
709,
264,
1105,
273,
1190,
281,
1955,
281,
1956,
264,
1962,
324,
1969,
324,
1972,
324,
1975,
324,
1977,
8,
264,
584,
264,
1101,
264,
1962,
9,
263,
581,
264,
1098,
273,
1190,
264,
1962,
273,
... |
#===================================================================
from datasets import load_dataset
#===================================================================
godzilla_mono_melodies = load_dataset('asigalov61/Godzilla-Mono-Melodies')
dataset_split = 'train'
dataset_entry_index = 0
dataset_entry = godzilla_mono_melodies[dataset_split][dataset_entry_index]
midi_hash = dataset_entry['md5']
midi_melody = dataset_entry['melody']
midi_melody_accompaniment = dataset_entry['melody_accompaniment']
print(midi_hash)
print(midi_melody[:15])
print(midi_melody_accompaniment[:15])
#===================================================================
# !git clone --depth 1 https://github.com/asigalov61/tegridy-tools
#===================================================================
import TMIDIX
#===================================================================
def decode_to_ms_MIDI_score(midi_score):
score = []
time = 0
dur = 1
vel = 90
pitch = 60
channel = 0
patch = 0
channels_map = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 9, 12, 13, 14, 15]
patches_map = [40, 0, 10, 19, 24, 35, 40, 52, 56, 9, 65, 73, 0, 0, 0, 0]
velocities_map = [125, 80, 100, 80, 90, 100, 100, 80, 110, 110, 110, 110, 80, 80, 80, 80]
for m in midi_score:
if 0 <= m < 256:
time += m * 16
elif 256 < m < 512:
dur = (m-256) * 16
elif 512 < m < 2048:
cha = (m-512) // 128
pitch = (m-512) % 128
channel = channels_map[cha]
patch = patches_map[channel]
vel = velocities_map[channel]
score.append(['note', time, dur, channel, pitch, vel, patch])
return score
#===================================================================
ms_MIDI_score = decode_to_ms_MIDI_score(midi_melody_accompaniment)
#===================================================================
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(ms_MIDI_score,
output_signature = midi_hash,
output_file_name = midi_hash,
track_name='Project Los Angeles'
)
@misc{GodzillaMIDIDataset2025,
title = {Godzilla MIDI Dataset: Enormous, comprehensive, normalized and searchable MIDI dataset for MIR and symbolic music AI purposes},
author = {Alex Lev},
publisher = {Project Los Angeles / Tegridy Code},
year = {2025},
url = {https://huggingface.co/datasets/projectlosangeles/Godzilla-MIDI-Dataset}
@misc {breadai_2025,
author = { {BreadAi} },
title = { Sourdough-midi-dataset (Revision cd19431) },
year = 2025,
url = {\url{https://huggingface.co/datasets/BreadAi/Sourdough-midi-dataset}},
doi = { 10.57967/hf/4743 },
publisher = { Hugging Face }
}