ChatMusician:

Understanding and Generating Music Intrinsically with LLM

Abstract

While Large Language Models (LLMs) demonstrate impressive capabilities in text generation, we find that their ability has yet to be generalized to music, humanity’s creative language. We introduce ChatMusician, an open-source LLM that integrates intrinsic musical abilities. It is based on continual pre-training and finetuning LLaMA2 on a text-compatible music representation, ABC notation, and the music is treated as a second language. ChatMusician can understand and generate music with a pure text tokenizer without any external multi-modal neural structures or tokenizers. Interestingly, endowing musical abilities does not harm language abilities, even achieving a slightly higher MMLU score. Our model is capable of composing well-structured, full-length music, conditioned on texts, chords, melodies, motifs, musical forms, etc, surpassing GPT-4 baseline. On our meticulously curated college-level music understanding benchmark, MusicTheoryBench, ChatMusician surpasses LLaMA2 and GPT-3.5 on zero-shot setting by a noticeable margin. Our work reveals that LLMs can be an excellent compressor for music, but there remains significant territory to be conquered. We release our 4B token music-language corpora MusicPile, the collected MusicTheoryBench, code, model and demo here.

Examples

Chord conditioned symbolic music generation

Text Input:
Craft musical works that follow the given chord alterations. 'Am', 'F', 'C', 'G'

Sheet music representation of input chords:



ABC Notation Music Output:

X:1
L:1/8
M:2/4
K:Amin
|:"Am" A, z C z | E z A z | c4- | c4 | d2 c2 | 
A2 G2 |"F" A3 G | A2 F2 | E2 F2 | D2 E2 | F4- | F4 |
G2 A2 | F2 G2 |1"C" E3 _E | D2 C2 |"G" D4- | D4 :|2
"C" E3 D | C2 B,2 |"Am" A,4- | A,4 ::
"Am" A, C E2 | E ^G A2 |"F" c4 | A4 |"C" c2 d2 | 
e2 c2 |"G" d3 c | d2 B2 | GA c2 | c2 B2 |"F" A4 |
F4 |"G" G3 A | GAGF |1"C" E3 F | EDCB, |"Am" A,4- | 
A,4 :|2"C" E3 D | C2 B,2 |"Am" A, z3 | z4 :|
										



Text Input:
Develop a musical piece using the given chord progression. 'Dm', 'C', 'Dm', 'Dm', 'C', 'Dm', 'C', 'Dm'

Sheet music representation of input chords:



ABC Notation Music Output:

X:1
L:1/8
M:6/8
K:F
z4 z D |"Dm" A2 A"C" G2 F |"Dm" FE D D2 D |
"Dm" A2 A"C" G2 A |"Dm" D3 D2 D |"Dm" A2 A"C" G2 F |
"Dm" FE D D2 D |"Dm" F2 G"C" E2 C |"Dm" D3 D2 D |
"F" F2 F F2 c |"Bb" d2 c"^(Gm)" B2 A |
"Gm" G2 G G2 B |"Am" A2 G"A7" FE D |"Dm" F2 F F2 c |
"Bb" d2 c"^(Gm)" B2 A |"Gm" G2 G"A7" A2 G |
"Dm" FE D D2 z |]
									



Text Input:
Construct musical creations that adhere to the set chord modifications. 'D', 'G', 'C', 'B', 'C', 'D', 'D', 'B'

Sheet music representation of input chords:



ABC Notation Music Output:

X:1
L:1/8
M:4/4
K:G
"D" FG |"G" ABGA"C" FGAB |"B" cBAB"C" G2 AB |
"D" cBAG"^(A)" FGAF |"D" D4 z2 FG |"B" ABGA"C" FGAB |
"B" cBAB"C" G2 dc |"D" BAGF"G" GBAG |"G/B" D4"C" z2 DC |]
"D" B,CDD"G" DEEE |"G/B" EFGG"C" G2 AB |"C" cBAG"D" FGAF |
"D" D4 z2 FG |"G" ABGA"G/B" FGAB |"C" cBAB"B" G2 dc |"D" BAGF"A" GBAG |
"A" D4 z2 DC |]"G" B,CDD"G/B" DEEE |"C" EFGG"B" G2 AB |
"D" cBAG"A" FGAF |"A" D4 z2 FG |"G" ABGA"G/B" FGAB |
"C" cBAB"B" G2 dc |"D" BAGF"A" GBAG |"A" D4 z2 |]
									



Musical form conditioned symbolic music generation

Text Input:
Craft a musical work that incorporates the given musical pattern as a central element.

Musical Form Input:
Binary, Sectional: Verse/Chorus



ABC Notation Music Output:

X:1
L:1/8
M:4/4
K:G
|: Bc | d2 Bd c2 Ac | B2 G2 GFGB | A2 F2 FEFG | 
A2 G2 G2 Bc |d2 Bd c2 Ac | B2 G2 GFGB | A2 F2 FEFG | 
A2 G2 G2 :: d2 | G2 Bd g3 f | f2 e2 e4 | D2 FA f3 e | 
e2 d2 d4 | G2 Bd g3 f | f2 e2 e2 g2 | fg af e2 f2 | g6 :|
									



Text Input:
Develop a composition by incorporating elements from the given melodic structure.

Musical Form Input:
Ternary, Sectional: Verse/Chorus/Bridge



ABC Notation Music Output:

X:1
L:1/8
M:6/8
K:Gmin
|:"Gm" GAB AG^F | GAB c2 c | d2 d cdB | A2 d cBA | 
GAB AG^F | GAB c2 c | d2 d cdB |1 AG^F G2 D :|2
AG^F GAB |: c2 c cBA | c2 c cBA | c2 c cBA | 
ABA GAB | c2 c cBA | c2 c cBA | d2 d cdB |1
AG^F GAB :|2 AG^F G2 A |:"Bbm" B3 dcB | f2 e dcB | 
c2 f c2 c | cfc cBA | ABB dcB | f2 e dcB |
d2 d edc |1 cBA B2 B :|2 cBA G3 ||
									



Text Input:
Follow the successive musical design to mold your composition.

Musical Form Input:
Binary, Sectional: Verse/Chorus



ABC Notation Music Output:

X:1
L:1/8
M:2/4
K:G
GDBG | dBge | dcBA |{c} BA/B/ GD | GDBG | 
dBge | dcBA | G2 G2 :: bgaf | gefd | ^cdef |
e/d/c/B/ AA | dAfd | afd'b | agfe | d2 d2 |
GDBG | dBge | dcBA |{c} BA/B/ GD | GDBG | dBge |
dcBA | G2 G2 :|
									



Alphabetic musical form and motif conditioned symbolic music generation

Text Input:
Develop a musical piece employing the provided motif and an alphabet-based structure.

Alphabetic Musical Form Input: AB

ABC Notation Music Input:

X:1
L:1/8
Q:1/8=80
M:6/8
K:D
e2 f{a} g2
									



ABC Notation Music Output:

X:1
L:1/8
Q:1/8=80
M:6/8
K:D
A | d2 f afd |{f} e2 f{a} g2 e |{e} d2 c{e} d2 e | 
(d3 d2) A | B2 B BAG | (F2 A) d2 A |e2 f{a} g2 f | 
(e3 e2) A | B2 B BAG | (F2 A) d2 A | e2 f{a} g2 f | 
(e3 e2) A | d2 f afd |{f} e2 f{a} g2 e |{e} d2 c{e} d2 e | 
(d3 d2) || A | d2 A d2 e| (d3 d2) A | e2 e e2 f| (e3 e2) A |
f2 a bag | f2 e d2 A | e2 f{a} g2 f | (e3 e2) A | 
B2 B BAG | (F2 A) d2 A | e2 f{a} g2 f |
(e3 e2) A | d2 f afd |{g} f2 e{g} f2 e |
{e} d2 c{e} d2 e | (d3 d2) |]
									



Text Input:
Craft a piece of music that integrates both the suggested theme and letter-based structure.

Alphabetic Musical Form Input: AB

ABC Notation Music Input:

X:1
L:1/8
Q:1/4=120
M:6/8
K:D
(d/e/)S f>dB A>GF E>ee e2 d/e/ f>dB
									

X:2
L:1/8
Q:1/4=120
M:6/8
K:D
d>fa d>fa
									



ABC Notation Music Output:

X:1
L:1/8
Q:1/4=120
M:6/8
K:D
"^Moderate" (d/e/) | f>dB A>GF | E>ee e2 d/e/ | f>dB AFA | 
D>dd d2 d/e/ | f>dB AF>D |E>ee e2 d/e/ | f>dB AFA | D>dd d2 || 
d | d>fa d>fa | d>fa{g} !fermata!a2 (g/f/) |!p! g>bg e>ge |
!f! c>AA A2 (f/g/) | a3 f3 | e3 d3 |{DE} F>EF G>AB | AdF{F} E2 ||
									



Text Input:
Develop a harmonic creation that incorporates the given motif and adheres to the specified alphabetical order.

Alphabetic Musical Form Input: ABC

ABC Notation Music Input:

X:1
L:1/16
M:3/4
K:G
eceg dBdg
									

X:2
L:1/16
M:3/4
K:G
G2 D2 GABc d2dB d2dB g2gB cBcd
									

X:3
L:1/16
M:3/4
K:G
G2 D2 GBdB GBdg dBdB Gcec Gceg
									





ABC Notation Music Output:

X:1
L:1/16
M:3/4
K:G
gfga g2d2 B2d2 | gfga g2b2 b2a2 | a2c2 c2e2 e2f2 | 
g2d2 d2B2 B2A2 | gfga g2d2 B2d2 |gfga g2b2 b2a2 | 
a2c2 c2e2 e2f2 | g2bg g2af"^Fine" g4 || G2 D2 GABc d2dB | 
d2dB g2gB cBcd | e2eB c2cA A2A2 | dedc BcBA G2D2 | 
G2 D2 GABc d2dB | d2dB g2gB cBcd | e2eB c2cA A2A2 |
ddBA A2G2"^D.C." G4 :| G2 D2 GBdB GBdg | dBdB Gcec Gceg | 
ecge dBdB cAFD | G2 D2 GBdB GBdg |dBdB g2gB cBcd | 
e2eB c2cA A2A2 | ddBA A2G2"^D.C." G4 :|
									



Terminology musical form and motif conditioned symbolic music generation

Text Input:
Develop melodies by fusing the assigned musical pattern with the given motif.

Musical Form Input: Binary, Sectional: Verse/Chorus

ABC Notation Music Input:

X:1
L:1/8
M:2/4
K:F
F/G/ BGFA GABd Bcde f^f/=f/ d/c/B/A/ BG^FA
									

X:2
L:1/8
M:2/4
K:F
f3 (c/d/)(d/e/) (e/f/)(f/g/) g>ec e/d/ d/c/c/B/ B/A/A/G/
									



ABC Notation Music Output:

X:1
L:1/8
M:2/4
K:F
F/G/ |:"F" BA"C7" GG |"F" FA"C7" G2 |"F" F>G"C7" AB |
"Am" cA"C7" GF/G/ |"F" BA"C7" GG |"F" FA"C7" G2 |"F" F>G"Bb" Bd |
1"C7" cE"F" FF/G/ :|2"C7" cE"F" F z |:"F" f3 (c/d/)(d/e/) |
"Gm" (e/f/)(f/g/) g>ec |"C7" e/d/ d/c/c/B/ B/A/A/G/ |
"F" GA/B/ c/d/e/f/ | f3 (c/d/)(d/e/) |
"Gm" (e/f/)(f/g/) g>ec |"C7" e/d/ d/c/c/B/ B/A/A/G/ |"F" FA/c/ f z :|
									



Text Input:
Create music by incorporating the assigned motif into the predetermined musical arrangement.

Musical Form Input: Only One Section

ABC Notation Music Input:

X:1
L:1/8
M:9/8
K:Emin
vB2 E E2 F G2 A
									



ABC Notation Music Output:

X:1
L:1/8
M:9/8
K:Emin
|:"Em" vB2 E E2 F G2 A |"D" B2 e e2 ^d e3 |
"Bm" B2 E E2 F G2 A |"G" B2 G A2 F"C" G2 E |
"Em" vB2 E E2 F G2 A |"D" B2 e e2 ^d"C" e3 |
"Em" ve2 B"^Av" A2 F"Bm" G2 A |1"G" B2 G"D" A2 F"Em" G2 E :|
2"G" B2 G"D" A2 F"G" G3 |"^(C)" ABc"^(D)" ded"G" dBG |
"^(C)" cde"D" dcB"G" A2 G |"^(C)" E2 E"Am" ABc"D" def |
"Em" g2 G"D" FAF"G" G3 |"^(C)" ABc"^(D)" ded"G" dBG |
"^(C)" cde"D" dcB"G" A2 G |"Em" e2 B"^Av" A2 F"Bm" G2 A |
"G" B2 G"D" A2 F"Em" G2 E |]
									



Text Input:
Create tunes by incorporating the provided motif in the specified composition structure.

Musical Form Input: Binary, Sectional: Verse/Chorus

ABC Notation Music Input:

X:1
L:1/8
M:2/2
K:Dmin
E Ddd^c d3 f |{f} edcd efga 
									

X:2
L:1/8
M:2/2
K:Dmin
BGGg fde^c d2 AF G/A/B
									



ABC Notation Music Output:

X:1
L:1/8
M:2/2
K:Dmin
E | Ddd^c d3 f |{f} edcd efga | fde^c d2 AF | 
G/A/B AG FDDF | Ddd^c d3 f |{f} edcd efga |
fd e^c d2 AF | G/A/B AG FDD || e | f>gag fdde | 
fdag fddf | e c f g2 ag | fde^c d2 de |
f>gag fdde | fdag fddf | e c f g2 ag | fde^c d2 ||
								



Harmonize the given melody

Text Input:
Formulate chord combinations to increase the harmonic complexity of the specified musical excerpt.

ABC Notation Music Input:

X:1
L:1/8
Q:1/4=120
M:4/4
K:C
G2 | [ec]2 [ec]G [ec]2 [ec]G |[M:3/4] [ec]2 [ec][dB] [ec][fd] |
[dB]4 [dB][ec] | [M:4/4] [fd]2 [fd]G [fd]2 [fd]G |
[M:3/4] [fd]2 [fd][ec] [fd][ge] | [ec]4 :: [ge]2 | 
[M:4/4] [af]2 [ge]2 [fc]4 | [ge]2 [fd]2 [ec]4 |
[M:3/4] [dB]3 [ec] [fd]2 |1 [ec][dB] [ec][fd] :|2 [ec]4 |]
									



ABC Notation Music Output:

X:1
L:1/8
Q:1/4=120
M:4/4
K:C
"^Allegro""G" G2 |:"C" [ec]2 [ec]G [ec]2 [ec]G |
[M:3/4]"G" [ec]2 [ec][dB] [ec][fd] | [dB]4 [dB][ec] |
[M:4/4] [fd]2 [fd]G [fd]2 [fd]G |
[M:3/4] [fd]2 [fd][ec] [fd][ge] |"C" [ec]4 :: [ge]2 |
"F" [af]2 [ge]2 [fc]4 |"C" [ge]2 [fd]2 [ec]4 |
[M:3/4]"G" [dB]3 [ec] [fd]2 |1"C" [ec][dB] [ec][fd] :|2
"C" [ec]4 |]
									



Text Input:
Design a fitting succession of chords that blend well with the provided musical score.

ABC Notation Music Input:

X:1
L:1/8
M:4/4
K:D
|: FA A2 ABAA | FA A2 A2 EF | G2 BG DEGA | 
BABc BAGD | FA A2 ABAA | FAAB A2 a^g | 
faed cdea | fd f2 e f3 :| |: ef-fg fedA | 
ce e2 e2 c2 | c e2 f e2 cA | 
BAGB A2 d2 | fef^g afed | cdef e2 a^g | 
faed cdea | fd f2 e f3 :|
									



ABC Notation Music Output:

X:1
L:1/8
M:4/4
K:D
AB |:"D" FA A2 ABAA | FA A2 A2 EF |"G" G2 BG DEGA | 
BABc BAGD |"D" FA A2 ABAA | FAAB A2 a^g |
faed"A" cdea |1"D" fd f2 e f3 :|2"D" fd f2 e f3 |:
"D" a2 fa fedf | a2 fa"Bm" fedf |
"Em" g2 bg"Bm" f2 af |"E7" be e2"A" e2 fg |
"D" a2 fa fedA | FA A2 A2 a^g | faed"A" cdea |
"D" fd f2 e f3 :|"D" ef-fg fedA |"A" ce e2 e2 c2 | 
c e2 f e2 cA |"G" BAGB"A" A2 d2 |
"D" fef^g"D/C#" afed |"Bm" cdef"A" e2 a^g | 
faed"A" cdea |"D" fd f2 e f3 :|
									



Text Input:
Develop a series of chord pairings that amplify the harmonious elements in the given music piece.

ABC Notation Music Input:

X:1
L:1/8
M:6/8
K:Amin
E |: EAA ABc | Bee e2 d | cBA ABc | BEE E2 D | EAA ABc | 
Bee e2 d | cBA ^GAB |1 A2 A A2 E :|2 A2 A GAB || c3 cdc | 
Bgg g2 ^g | aed cBA |^GAB E^F^G | A^GA BAB | cde fed | 
cBA ^GAB |1 A2 A GAB :|2 \n A3 A2 ||
									



ABC Notation Music Output:

X:1
L:1/8
M:6/8
K:Amin
E |:"Am" EAA ABc |"E7" Bee e2 d |"Am" cBA ABc |
"E7" BGE E2 E |"Am" EAA ABc |"E7" Bee e2 d |
"Am" cBA"E7" ^GAB |1"Am" A2 A A2 E :|2
"Am" A2 A GAB ||"C" c3 cdc |"G" Bgg g2 ^g |"Am" aed cBA |
"E7" ^GAB E^F^G |"Am" A^GA"E7" BAB |"Am" cde"Dm" fed |
"Am" cBA"E7" ^GAB |1"Am" A2 A GAB :|2 "Am" A2 A A2 ||
									



Motif analysis

Text Input:
Immerse yourself in the musical piece and discover the continuous theme present within each part.

ABC Notation Music Input:

X:1
L:1/8
M:3/4
K:D
D>B, | (A,2 B,2) D2 | D4 DE | (F2 d2) c2 |{c} B4 (cd) | 
(BA) (GF) (ED) | D4 DE | F2 (GF)(ED) |B,4 D>B, | 
A,2 B,2 D2 | D4 DE | (F2 d2) c2 |{c} B4 (cd) | 
(BA) (GF) (ED) | (D2 B,2) (D/E/)F |
{F} E2 D2 D2 | D4 :: (A/B/c) | (d2 c2) d2 | 
B2 c2 d2 | e2 (dc) B>A | A4 (A/B/c) | (d2 c2) d2 |
A2 (BA) (GF) | F2 (3DEF (3FED | B,4 D>B, | (A,2 B,2) D2 | 
D4 DE | (F2 d2) c2 |{c} B4 (cd) |
(BA) (GF) (E>D) | D2 B,2 (D/E/F) |{F} E2 D2 D2 | D4 :|
									



ABC Notation Music Output:

X:1
L:1/8
M:3/4
K:D
D4 DE 
									

X:2
L:1/8
M:3/4
K:D
C2 B2 A2
									



Text Input:
Immerse yourself in the musical piece and discover the continuous theme present within each part.

ABC Notation Music Input:

X:1
L:1/8
M:3/4
K:D
D>B, | (A,2 B,2) D2 | D4 DE | (F2 d2) c2 |{c} B4 (cd) | 
(BA) (GF) (ED) | D4 DE | F2 (GF)(ED) | B,4 D>B, | 
A,2 B,2 D2 | D4 DE | (F2 d2) c2 |{c} B4 (cd) | 
(BA) (GF) (ED) | (D2 B,2) (D/E/)F |
{F} E2 D2 D2 | D4 :: (A/B/c) | (d2 c2) d2 | B2 c2 d2 | 
e2 (dc) B>A | A4 (A/B/c) | (d2 c2) d2 |A2 (BA) (GF) | 
F2 (3DEF (3FED | B,4 D>B, | (A,2 B,2) D2 | D4 DE | 
(F2 d2) c2 |{c} B4 (cd) |(BA) (GF) (E>D) | 
D2 B,2 (D/E/F) |{F} E2 D2 D2 | D4 :|
									



ABC Notation Music Output:

X:1
L:1/8
M:3/4
K:D
D4 DE
									



Text Input:
Analyze the musical work and pinpoint the consistent melodic element in every section.

ABC Notation Music Input:

X:1
L:1/8
M:4/4
K:G
ge | d2 G2 cBAG | d2 G2 cBAG | e2 A2 ABcd | edcB A2 Bc | 
d2 cB g2 fe | edcB cBAG | BAGE DEGA | B2 G2 G2 :: ga | 
b2 gb a2 fa | g2 eg edcB | e2 A2 ABcd | edcB A2 ga | 
b2 gb a2 fa | g2 eg edcB | cBAG DEGA | B2 G2 G2 :|
									



ABC Notation Music Output:

X:1
L:1/8
M:4/4
K:G
ge d2 G2 cBAG d2 G2 cBAG
									



Musical form analysis

Text Input:
Investigate the attributes of this musical creation and identify its arrangement using suitable music-related terms.

ABC Notation Music Input:

X:1
L:1/8
M:3/4
K:F
A,A, | C3 A, A,2 | C2 z2 A,C | F2 E3 D | D2 C2 G,A, |
B,2 G,2 G,A, | B,2 z2 G,B, | ED C2 E2 |
F2 z2 F,F, | F4 DB, | C4 A,F, | B,2 C2 D2 |{A,} C4 F,F, | 
F4 DB, | C4 A,F, | B,2{CB,} A,2 G,2 | F,4 |]
									



Musical Form Output:
Only One Section



Text Input:
Investigate the aspects of this musical work and convey its structural organization using suitable musical words.

ABC Notation Music Input:

X:1
L:1/8
M:2/2
K:G
G2 dG BGdG | G2 dc BAGB | A2 eA cAeA | A2 ed cAFA | 
G2 dG BGdG | G2 dc BAGB | ABcd efge |1 aged cAFA :|2 
aged ^cdef |: g3 f g2 ef | gedc BA G2 | eaag agea | 
aged ^cdef | g3 f g2 ef |gedc BAGB | ABcd efge |1 
aged ^cdef :|2 aged cAFA |:"^variations:" G2 BG dGBA | 
G2 dG BAGB | A2 cA eAcA | A2 ed cAFA | G2 BG dGBA | 
G2 dc BAGB | ABcd efge |1 aged cAFA :|2 aged ^cdef |:
g2 af g2 ef | gedc BAGB | Aaag ageg | aged ^cdef | 
gbaf g2 ef | gedc BAGB | ABcd efge |1
aged ^cdef :|2 aged cAFA ||
									



Musical Form Output:
Compound Binary



Text Input:
Investigate the components of this music and outline its form using specialized musical language.

ABC Notation Music Input:

X:1
L:1/8
M:4/4
K:D
d6 e f- | f2 A2 d2 c c- | c B3- B4 | z8 | g6 e c- | 
c2 A2 d2 d f- | f8 | z8 | d6 e f- | f2 f a- a2 g2 | 
g B3- B4 | z8 | c6 B A- | A g3 f2 e d- | d8 | z8 |]
									



Musical Form Output:
Only One Section



Bach's style symbolic music generation

Results

ABC Notation Music Output:

X:1
X:1
T:Music21 Fragment
T:Music21 Fragment
T:Music21
C:Music21
%%score 1 2 3 4
L:1/8
M:4/4
K:C
V:1 treble nm="Piano" snm="Pno"
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
L:1/4
V:2 treble nm="Piano" snm="Pno"
%%MIDI channel 3
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:3 bass nm="Piano" snm="Pno"
%%MIDI channel 4
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:4 bass nm="Piano" snm="Pno"
%%MIDI channel 5
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:1
z3 c | B A G F | E D !fermata!E c | d e d c | !fermata!B2 z c | B A G F | E D !fermata!E c | %7
d e d c | !fermata!B2 z e | f e d c | B A !fermata!B B | c d e d | !fermata!c2 z e | d c B A | %14
G A B c | d e d c | !fermata!B2 z e | d c B A | G A B c | d e d c | !fermata!c2 z B | A G F E | %22
D C !fermata!D c | B c d e | d c B A | !fermata!G2 z c | B A G F | E D !fermata!E c | d e d c | %29
!fermata!B2 z e | d c B A | G A B c | d e d c | !fermata!c2 z e | d c B A | G A B c | d e d c | %36
!fermata!c2 z B | A G F E | D C !fermata!D c | B c d e | d c B A | !fermata!G2 z2 |] %42
V:2
z6 CD | EF ED C2 CD | EF ED !fermata!C2 CD | EF GF ED C2 | !fermata!C6 CD | EF ED C2 CD | %6
EF ED !fermata!C2 CD | EF GF ED C2 | !fermata!C6 CD | EF GA GF ED | C2 DE !fermata!F2 DC | %11
B,C DB, C2 CD | !fermata!E6 CD | EF GA GF ED | C2 DE !fermata!F2 DC | B,C DB, C2 CD | %16
!fermata!E6 CD | EF GA GF ED | C2 DE !fermata!F2 DC | B,C DB, C2 CD | !fermata!E6 B,C | %21
DE ^FE D=C B,A, | G,^F, G,2 !fermata!G,2 =F,2 | G,2 A,B, CD EF | !fermata!G6 B,C | DE ^FE D=C B,A, | %26
G,^F, G,2 !fermata!G,2 =F,2 | G,2 A,B, CD EF | !fermata!G6 B,C | DE ^FE D=C B,A, | %30
G,^F, G,2 !fermata!G,2 =F,2 | G,2 A,B, CD EF | !fermata!G6 B,C | DE ^FE D=C B,A, | %34
G,^F, G,2 !fermata!G,2 =F,2 | G,2 A,B, CD EF | !fermata!G6 z2 |] %37
V:3
z6 G,2 | A,2 G,2 G,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | G,2 A,2 B,2 C2 | !fermata!C6 G,2 | %6
A,2 G,2 G,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | G,2 A,2 B,2 C2 | !fermata!C6 G,2 | G,2 A,2 B,2 C2 | %11
C2 B,2 !fermata!C2 B,2 | C2 D2 E2 D2 | !fermata!C6 G,2 | A,2 G,2 G,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %16
G,2 A,2 B,2 C2 | !fermata!C6 G,2 | G,2 A,2 B,2 C2 | C2 B,2 !fermata!C2 B,2 | C2 D2 E2 D2 | %21
!fermata!C6 B,2 | A,2 G,2 G,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | G,2 A,2 B,2 C2 | !fermata!C6 B,2 | %26
A,2 G,2 G,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | G,2 A,2 B,2 C2 | !fermata!C6 B,2 | A,2 G,2 G,2 G,2 | %31
G,2 G,2 !fermata!G,2 G,2 | G,2 A,2 B,2 C2 | !fermata!C6 z2 |] %34
V:4
z6"C" C,2 |"Am" A,,2"Em" E,2"C" C,2"C" C,2 |"Am" A,,2"Em" E,2"C" !fermata!C,2"C" C,2 | %3
"G" G,,2"Am" A,,2"G" B,,2"C" C,2 |"C" !fermata!C,6"C" C,2 |"Am" A,,2"Em" E,2"C" C,2"C" C,2 | %6
"Am" A,,2"Em" E,2"C" !fermata!C,2"C" C,2 |"G" G,,2"Am" A,,2"G" B,,2"C" C,2 |"C" !fermata!C,6"C" C,2 | %9
"G" G,,2"Am" A,,2"G" B,,2"C" C,2 |"C" C,2"G" G,,2"C" !fermata!C,2"C" C,2 | %11
"C" C,2"G" G,,2"Am" A,,2"G" B,,2 |"C" !fermata!C,6"C" C,2 |"G" G,,2"Am" A,,2"G" B,,2"C" C,2 | %14
"C" C,2"G" G,,2"C" !fermata!C,2"C" C,2 |"G" G,,2"Am" A,,2"G" B,,2"C" C,2 |"C" !fermata!C,6"C" C,2 | %17
"G" G,,2"Am" A,,2"G" B,,2"C" C,2 |"C" C,2"G" G,,2"C" !fermata!C,2"C" C,2 | %19
"G" G,,2"Am" A,,2"G" B,,2"C" C,2 |"C" !fermata!C,6"E" E,2 |"Am" A,,2"Em" E,2"C" C,2"C" C,2 | %
									



Results

ABC Notation Music Output:

X:1
T:Music21 Fragment
T:Music21 Fragment
T:Music21
C:Music21
%%score 1 2 3 4
L:1/8
M:4/4
K:C
V:1 treble nm="Piano" snm="Pno"
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
L:1/4
V:2 treble nm="Piano" snm="Pno"
%%MIDI channel 3
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:3 bass nm="Piano" snm="Pno"
%%MIDI channel 4
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:4 bass nm="Piano" snm="Pno"
%%MIDI channel 5
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:1
z3 c | B A G F/E/ | !fermata!E2 E ^F | G A B c | d e !fermata!c c | B A G F/E/ | %6
!fermata!E2 E ^F | G A B c | d e !fermata!c c | c d e e | d2 !fermata!c c | c d e e | %12
d2 !fermata!c c | B c d e | d2 !fermata!d d | e f g f | e d !fermata!e e | d c B A | %18
G2 !fermata!G G | c d e e | d2 !fermata!c c | c d e e | d2 !fermata!c c | B c d e | d2 !fermata!d d | %25
e f g f | e d !fermata!e e | d c B A | G2 !fermata!G G | c d e e | d2 !fermata!c c | c d e e | %32
d2 !fermata!c c | B c d e | d2 !fermata!d d | e f g f | e d !fermata!e e | d c B A | %38
G2 !fermata!G G |] %39
V:2
z6 CD | EF GA B2 AB | AF ED !fermata!E2 E^F | G2 G2 AG FE | DE FD !fermata!B,2 CD | EF GA B2 AB | %6
AF ED !fermata!E2 E^F | G2 G2 AG FE | DE FD !fermata!B,2 CD | E2 D2 C2 B,2 | C2 B,2 !fermata!G,2 CD | %11
E2 D2 C2 B,2 | C2 B,2 !fermata!G,2 CD | =CD E^F G2 A2 | G2 F2 !fermata!D2 G2 | G2 G2 AG FE | %16
DE FD !fermata!B,2 CD | E2 D2 C2 B,2 | C2 B,2 !fermata!G,2 CD | E2 D2 C2 B,2 | %20
C2 B,2 !fermata!G,2 CD | =CD E^F G2 A2 | G2 F2 !fermata!D2 G2 | G2 G2 AG FE | DE FD !fermata!B,2 CD | %25
E2 D2 C2 B,2 | C2 B,2 !fermata!G,2 CD | E2 D2 C2 B,2 | C2 B,2 !fermata!G,2 z2 |] %28
V:3
z6 G,2 | G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %5
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %9
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %13
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %17
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %21
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %25
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %28
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %32
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %36
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %40
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %44
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %48
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %52
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %56
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %60
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %64
G,2 A,B, C2 B,2 | C2 B,2 !fermata!G,2 C2 | C2 B,2 A,2 G,2 | G,2 G,2 !fermata!G,2 G,2 | %68
									



Results

ABC Notation Music Output:

X:1
T:Music21 Fragment
T:Music21 Fragment
T:Music21
C:Music21
%%score 1 2 3 4
L:1/4
M:3/4
K:C
V:1 treble 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:2 treble 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:3 bass 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:4 bass 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:1
	C C C | F2 D | E2 ^F | !fermata!G3 | E F G | A2 F | G3 | !fermata!F3 | G E/F/ G | A2 G | %10
	G3/2 F/ E | !fermata!D3 | G G G | F2 E | E D2 | !fermata!C3 |] %16
V:2
	G, G, C | C B,/A,/ B, | C2 C | D3 | C C D/E/ | F2 F | F2 E | C3 | D C C | C2 C | D/C/ B, C | %11
	C !fermata!B,2 | C D/F/ E | D C/B,/ C | C2 B, | G,3 |] %16
V:3
	E, E, E, | D,/E,/ F, G, | G,2 A, | B,3 | G, A, _B, | C2 C | D/C/ _B,/A,/ G,/B,/ | %7
	_B,/A,/4G,/4 !fermata!A,2 | G, G, G, | G, F, E, | D, G, G, | G,3 | G, G, C/B,/ | A, G, G, | %14
	G, A, G,/F,/ | E,3 |] %16
V:4
"C" C,"C" C,/B,,/"Am" A,, |"Dm9" D,"Bdim/D" D,,"G" G,, |"C" C,"Cmaj7/B" B,,"F#dim/A" A,, | %3
"G" !fermata!G,,3 |"C" C,/_B,,/"F/A" A,,"Gm" G,, |"F" F,,"F/G" G,,"F/A" A,, | %6
"Gm7/Bb" _B,,"Gm" G,,"C" C, |"Fsus4" !fermata!F,,3 |"G/B" =B,,"C" C,"C/E" E,, | %9
"F" F,,/G,,/"F/A" A,,/B,,/"C" C, |"G/B" B,,"G" G,,"C" C, |"Gsus4" !fermata!G,,3 | %12
"C/E" E,"G/B" B,,"C" C, |"Dm" D,"G" G,,"C" C, |"C/E" E,,"Dm7/F" F,,"G" G,, |"C" !fermata!C,,3 |] %16