Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:12/8
K:D
['A2 f', 'g2 e cde d3']  
X:1
L:1/8
M:12/8
K:D
|: f2 f fed e2 e edc | d2 d dcB c2 c cBA | GBB GBB FAA FAA |1 EDE e2 d cBc d2 e :|2 
 EDE e2 d cBc d3 |: A2 f A2 f A2 f fed | Bgg Bgg Bgg gfe | cdc BcB Ace a2 f |1 g2 e cde d3 dcB :|2 
 g2 e cde d3 d2 e ||  