Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:4/4
K:D
['f>ed>c d>AF>A', 'd2 cd edcd eAaA fede fAaA gfga']  
X:1
L:1/8
M:4/4
K:D
 d>e | f>ed>c d>AF>A | f>ed>c d>AF>A | Bdgf edcd | (3efd (3cdB Acde | fedc dAFA | fedc Bdgb | 
 ba^ga =geag | f2 d2 d2 :: cd | edcd eAaA | fede fAaA | gfga bagf | (3efd (3cdB (3ABG (3FGE | 
 DFAd fafd | gfga b2 ag | (3fag (3fed (3cba (3gfe | f2 d2 d2 :|  