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=232
M:4/4
K:D
['A<D D>E F>E F>G']  
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
|: d>B | A<D D>E F>E F>G | A<D D>D d3 B | A<D D>E F>E F>G | A>B =c>A G2 d>B | A<D D>E F>E F>G | 
 A<D D>D d3 B | A<D D>E F>E F>G | A>B =c>A G2 F>G | A<d d>B A>G F>G | A>c d>e f2 F>G | 
 A<d d>B A>G F>G | A>B =c>A G2 F>G | A<d d>B A>G F>G | A>c d>e f2 e>f | g>e f>d e>c d>B | 
 A>B =c>A G2 :|  