visakh7843's picture
n-grams markov implementation with conversion script and files
1d4f575
raw
history blame
7.56 kB
X: 1
T: from /home/visakh7843/SMG/data/bach/bach_846.mid
M: 4/4
L: 1/8
Q:1/4=74
K:C % 0 sharps
V:1
%%clef treble
%%MIDI program 0
K:F % 21882 sharps
z=G/2=c/2 e/2G/2c/2e/2 zG/2c/2 e/2G/2c/2e/2| \
z=A/2=d/2 =f/2A/2d/2f/2 zA/2d/2 f/2A/2d/2f/2| \
z=G/2=d/2 =f/2G/2d/2f/2 zG/2d/2 f/2G/2d/2f/2| \
z=G/2=c/2 e/2G/2c/2e/2 zG/2c/2 e/2G/2c/2e/2|
z=A/2e/2 a/2A/2e/2a/2 zA/2e/2 a/2A/2e/2a/2| \
zF/2=A/2 =d/2F/2A/2d/2 zF/2A/2 d/2F/2A/2d/2| \
z=G/2=d/2 g/2G/2d/2g/2 zG/2d/2 g/2G/2d/2g/2| \
zE/2=G/2 =c/2E/2G/2c/2 zE/2G/2 c/2E/2G/2c/2|
zE/2=G/2 =c/2E/2G/2c/2 zE/2G/2 c/2E/2G/2c/2| \
z=D/2F/2 =c/2D/2F/2c/2 zD/2F/2 c/2D/2F/2c/2| \
z=D/2=G/2 B/2D/2G/2B/2 zD/2G/2 B/2D/2G/2B/2| \
zE/2=G/2 c/2E/2G/2c/2 zE/2G/2 c/2E/2G/2c/2|
z=D/2=A/2 d/2D/2A/2d/2 zD/2A/2 d/2D/2A/2d/2| \
z=D/2=F/2 B/2D/2F/2B/2 zD/2F/2 B/2D/2F/2B/2| \
z=C/2=G/2 c/2C/2G/2c/2 zC/2G/2 c/2C/2G/2c/2| \
z=A,/2=C/2 =F/2A,/2C/2F/2 zA,/2C/2 F/2A,/2C/2F/2|
z=A,/2=C/2 =F/2A,/2C/2F/2 zA,/2C/2 F/2A,/2C/2F/2| \
z=G,/2B,/2 =F/2G,/2B,/2F/2 zG,/2B,/2 F/2G,/2B,/2F/2| \
z=G,/2=C/2 E/2G,/2C/2E/2 zG,/2C/2 E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