Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['(A3/2B/4c/4) d2 A>F D2 G>A B<GE>d{d} Tc3', 'c2 BA d2'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
 (A3/2B/4c/4) | d2 A>F D2 G>A | B<GE>d{d} Tc3 d | e c2 e d B2 d |{cd} e2 E>^G A2 :: AG | 
 F>GA=c BGGF | G>ABd{d} c2 BA | d2 d>d d2 cB | (BA) (GF){F} E2 A2 | DFA=c BGGF | E2 ed{d} c2 BA | 
 d2 (e3/2f/4g/4) fddA | BGFE D2 |]  