Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:2/4
K:D
['(3A/B/c/ dd (3ddd dddA dd df AA', 'AABA f f/f/ f2 edBd'  
X:1
L:1/8
M:2/4
K:D
 (3A/B/c/ | dd (3ddd | dddA | dd df | AA BA | dd(3ddd | dd dA | dd df | AABA || f f/f/ f2 | edBd | 
 e e/e/ e2 | AABA | f f/f/ f2 | edBd | ed/e/ fe | d2 ||  