visakh7843's picture
n-grams markov implementation with conversion script and files
1d4f575
raw
history blame
7.65 kB
X: 1
T: from /home/visakh7843/SMG/data/beeth/beethoven_opus10_2.mid
M: 4/4
L: 1/8
Q:1/4=69
K:Ab % 4 flats
V:1
%%MIDI program 0
[AC-]3[BC-]/2[AGC]/2 [c-AD-]/2[c-D-]2[cD-]/2[BD]| \
[AC]6 =A2| \
[BE-]2 E-[cE-]/2[B=AE]/2 [d-BE-]/2[d-E]3/2 [d_A-][cA]| \
[BG]6 =B2|
[c-E-]3[cE-]/2[AE]/2 [e-A-E-]3[eA-E-]/2[cAE]/2| \
[f-A-F-]3[fA-F-]/2[dAF]/2 z/2[f-d-A-]/2[a-fd-A-]3| \
[ad-A-][gd-A-] [fd-A-][edA] [dB]2 [cA]2| \
[e-E]2 [eE-][cE] [BBE-]/2[BE-]/2[dB-E-]/2[cBE]/2 e/2d/2>c/2[dB]/2|
[AC-]3[BC-]/2[AGC]/2 [c-AD-]/2[c-D-]2[cD-]/2[BD]| \
[AC]4 z4| \
B2 z (3c/2B/2=A/2 [d-B_A-]/2[d-A-]2[dA-]/2[cA]| \
[BG]4 z4|
[c-E]/2c3A/2 [e-E]/2e3c/2| \
[f-F]/2f4-f3/2 [e=A][dB]| \
[cA-]2 [eA]2 [dG-]2 [BG]2| \
[B-D]2 [B-C]/2[B-D]/2[B-E]/2[BD]/2 [AC]2 z2|
[f'-f]/2f'2-f'/2z/2z/2 Fz2z/2[EC]/2| \
[EC]4 [DB,]2 z2| \
[e'-e]/2e'2-e'/2z/2z/2 Ez2z/2[DB,]/2| \
[DB,]4 [CA,]2 z2|
z6 z3/2[EA,E,]/2| \
E4 =D=E F=A| \
Bd =d=e fg af| \
=d4- d (3e/2d/2c/2 [e-d]/2ef/2|
f2 e4 =e2| \
f4- f (3g/2f/2e/2 [g-f]/2ga/2| \
a2 g2 z4| \
z/2z/2z/2z/2 z/2z/2c'4z/2z/2|
f3/2e/2 =d[f-e]/2f/2 [eE-]/2E3/2 z2|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-F][dF-]/2[BF-]/2|
[A-F][A-E]2[AE-] [=A-E][AE-] [B-E][BE-]| \
[=B-E][BE-] [c-EC-][cE-C] [d-ED-][dE-D] [=d-ED-][dED]| \
[e-E]2 [eE]2 [d-ED]2 [dED]2| \
[c-EC]2 [c=EC]2 [BF-][cF-] [d-F][dF-]/2[BF]/2|
[A-E-][e-AE-] [e=A-E-][e-AE-] [eB-E-][e-BE] [eG-][eG]| \
[A-EC][AE-] EE2E2E-| \
[d-B-E][d-B-E]2[dBE-] [d-B-E][d-B-E]2[dBE-]| \
[c-A-E][cAE-] EE2E2E-|
[B-ED-][B-ED-]2[BE-D] [B-ED-][B-ED-]2[BED]| \
[AC][EE,]2[EE,]2[E-E,-] [EC-A,-E,][E-CA,E,-]| \
[ED-B,-E,][E-DB,E,-] [EE,][E-E,-] [ED-B,-E,][E-DB,E,-] [EE,][E-E,-]| \
[ECA,E,][ECA,E,]2[ECA,E,]2[ECA,E,]2[E-C-A,-E,-]|
[ECA,E,][CA,E,]2[CA,E,]2[CA,E,]2[C-A,-E,-]| \
[CA,E,][A,E,C,]2[A,E,C,]2[A,E,C,]2[A,-E,-C,-]| \
[A,E,C,]z3 [E,C,]2 z2| \
[C,A,,]8|
V:2
%%MIDI program 0
[A,E,A,,]4 [G,E,G,,]4| \
[A,E,A,,]6 z2| \
[DG,-]2 [B,G,]2 A,2- [CA,]2| \
[EE,]6 z2|
A,4 [CA,C,]4| \
[DA,D,]4 [D-A,-F,-]/2[F-D-A,-F,-]3[F-D-A,-F,-]/2| \
[FDA,F,]4 [EG,]2 [EA,]2| \
[CE,-]3[A,E,] [G,E,]2 z2|
A,,-[E,A,,-] [E,A,,-][E,A,,] G,,-[E,G,,-] [E,G,,-][E,G,,]| \
A,,E, C,A, E,C A,E| \
G,-[EG,-] [EG,-][EG,] A,-[EA,-] [EA,-][EA,]| \
E,E =DE DE F_D|
zA, CE zC, E,A,| \
z[F,D,-] [G,D,-][A,D,-] [=A,D,-][B,D,-] [CD,-][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