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
['d>d A>A', 'e2 e>e e2 f2'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
|: AB/c/ | d2 AA FDFD | A2 A>A A2 e>e | f2 dd fdfa | e2 e>e e2 AB/c/ | d>d A>A d>d A>A | 
 f>dg>e"^?" a>fb>g | fafd f2 e2 | d2 d>d d2 :: (A/B/c/d/) | e2 e>e e2 f2 | e2 e>e e2 f2 | 
 g>ef>d e>cd>B | (e/f/).e/.d/ (c/d/).c/.B/ (A/B/).A/.G/ (F/G/).F/.E/ | D2 E>E A>A d=c | 
 B2 G2 G>G z2 | E2 G>G B>B ed | B2 A2 A>A Af | g2 e>g f>af>d | c>ec>A G>FG>A | B>cd>g f2 e2 | 
 d2 d>d d2 :|  