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
['D2 FA B>c', 'd3 A d2 d>e f2 ef g2'  
X:1
L:1/8
M:4/4
K:D
 A | d2 d>e (dc) cd | TB>A(B=c) BAF>d | AGFE D2 FA | B>c Tc2 d3 A | (df) ad (cd/e/) dc | 
 BAB=c TBAFd | A>B (A/G/).F/.E/ D2 FA | B>c Tc2 d3 :: A | d2 d>e f2 ef | g2 fe fdB>c | 
 (df)ed (ce)dc | BAB{d}=c BAF>a | a2 (a/g/f/)e/ d2 dc | TB>AFd Td>e{de} !fermata!f2 | 
{edcB} A>B (A/G/)FE D2 FA | B>c Tc2 d3 :|  