Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:2/2
K:D
['d2 d2', 'A4 (Ac)(ec) (Ad)(fd) (Ae)(ge) (Af)(af) (Gd)(ba) (gfed)'  
X:1
L:1/8
M:2/2
K:D
|: d2 d2 fedc | d2 d2 d2 A2 | BdcB (AG).F.E | D2 D2 D4 | d2 d2 fedc | (df) a4 ^gf | 
 ea^gf (ed).c.B | A2 A2 A4 :: (Ac)(ec) (Ad)(fd) | (Ae)(ge) (Af)(af) | (Gd)(ba) (gfed) | Tc2 A4 GF | 
 G2 b2 E2 g2 | F2 a2 D2 f2 | ebag (fe).d.c | d2 D2 D4 :|  