Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['a>g (3faf d>f A>dF>A D>FA>d f2 e>f', 'a>g (3cdc']  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 a>g |"D" (3faf d>f A>dF>A | D>FA>d f2 e>f |"G" g>be>c"Em" d>fA>F |"G" G>AB>G"A" E2 a>g | 
"D" (3faf d>f A>dF>A | D>FA>d f2 e>f |"G" (3gag e>d"A" c>AB>c |"D" d2 f2 d2 :: (3DEF | 
"G" G>FG>A"A" B>cd>e |"D" f>gf>e d>cd>B | A2 f2 f>e f2 |"A" G2 e2 e>de>F |"G" G>FG>A"A" B>cd>e | 
"D" f>gf>e d>cd>B | A>fe>d"A" c>AB>c |"D" d>f"A"e>c"D" d2 :: a>g | 
"D" (3fgf"A" (3efe"D" (3ded"A" (3cdc |"G" (3BcB"A" (3ABA"G" G2 b>a | 
"G" (3gag"D" (3fgf"A" (3efe"D" (3ded |"A" (3cdc"G" (3BcB"A" A2 a>g | 
"D" (3fgf"A" (3efe"D" (3ded"A" (3cdc |"G" (3BcB"A" (3ABA"G" (3GAG"D" (3FGF | 
"G" E>g e>d"A" c>A B>c |"D" d2 f2 d2 :|  