Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/4
M:4/4
K:D
['d c'  
X:1
L:1/4
M:4/4
K:D
 A |"D" d A d"A" e |"D" f3/2 e/ d c |"G" B A B/c/d/B/ |"A" A G"D" F A |"D" d A d"A" e | 
"D" f3/2 e/ d c |"G" B A"A" B c |"D" d2- d :: A |"D" (3B/c/B/ A F A | (3B/c/B/ A F d/d/ | 
"D" d c/c/"A" c B/B/ | B A"D" A d/d/ |"A" d c c e/e/ |"D" e d d f |"G" f e"A" B c |"D" d2- d :|  