Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:D
['D>FA>F G>Bd>A F>Ad>e f>dA>F G>Bd>g f>ed>c', '(3cBA A2'  
X:1
L:1/8
M:4/4
K:D
 F>E | D>FA>F G>Bd>A | F>Ad>e f>dA>F | G>Bd>g f>ed>c | (3efe (3dcB (3ABA (3GFE | D>FA>F G>Bd>A | 
 F>Ad>e f>dA>F | G>Bd>g f>ed>c | e>dd>c d2 :: c>d | e>A (3cBA A2 g>f | e<A (3cBA A2 c>d | 
 e>Af>A g>Af>A | (3efe (3dcB (3ABA (3GFE | D>FA>F G>Bd>A | F>Ad>e f>dA>F | G>Bd>g f>ed>c | 
 e>dd>c d2 :|  