Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/2
K:D
['f2 d2 fgfe d4', 'fafe d2'  
X:1
L:1/8
M:2/2
K:D
"^1st""D" defg f4 |"Em" efgf e4 |"A" a2 e2 a2 e2 |1"D" fgfe f2 d2 :|2"D" fgfe d4 |]: 
"D" a2 a2"G" b2 b2 |"A" agfg"A" e4 | a2 e2 a2 e2 |1"D" fgfe f2 d2 :|2"D" fgfe d4 |] 
"^2nd""D" defe defe | d2 f2 a2 f2 |"A" edcd e2 e2 |1 fgfe"D" f2 d2 :|2"D" fgfe d4 |]: 
"D" f2 f2 a2 gf |"A" e2 e2"D" a2 f2 |"A" edcd e2 e2 |1 fgfe"D" f2 d2 :|2"D" fgfe d4 |] 
"^3rd""D" ABdf A2 A2 | ABdf"G" B2 B2 |"A" ABcd e2 e2 |1 dcde"D" f2 f2 :|2"A" dedc"D" d4 |]: 
"D" fafe d2 d2 | cdef f4 | fafe d2 d2"A" cdec"D" d4 :|  