Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['F>Ad>e f>dA>F G>Be>f g>ec>A', 'd>e f>dB>d A>dF>A'  
X:1
L:1/8
M:4/4
K:D
|: A>G | F>Ad>e f>dA>F | G>Be>f g>ec>A | F>Ad>e f>dg>f | (3efe (3dcB (3ABA (3GFE | F>Ad>e f>dA>F | 
 G>Be>f g>ec>A | F>Ad>f e>AB>c | d2 f2 d2 :: d>e | f>dB>d A>dF>A | A>dF>A A>dF>A | 
 f>d (3Bcd A>dF>d | B>e{f}e>d e2 d>e | f>dB>d A>dF>A | G>FE>F G>AB>d | d>af>d B>ge>c | d2 f2 d2 :|  