Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:2/4
K:D
['A/B/A/G/ FA de f2', 'e>f ed ce'  
X:1
L:1/8
M:2/4
K:D
|: A/B/A/G/ FA | de f2 | g2 fe | df A2 | A/B/A/G/ FA | de f2 | gg fe | d2 d2 :: e>f ed | ce a2 | 
 e>f ef | ge/d/ c/B/A | e>f ed | ce a>f | ed cB | A2 A2 :|  