Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/16
M:2/4
K:D
['D2 (B2AG) (Bd)d2 AGcG AGcG (B2AG) B2(d2d2)', 'eaab abag efga gfed cdef gfed', 'edd2 e2dc e2a2 g2edc2A2 A2GF AGcG AGcG'  
X:1
L:1/16
M:2/4
K:D
 D2 | (B2AG) (Bd)d2 | AGcG AGcG | (B2AG) B2(d2d2) | AGcG ECC2 :| eaab abag | efga gfed | 
 cdef gfed | edgd edd2 | eaab abag | efga gfed | cdef gfed | edgd edd2 || e2dc e2a2 | g2edc2A2 | 
 A2GF AGcG | AGcG ECC2 :|  