Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
M:4/4
K:D
['d3 e', 'A2 (B3 e) e3 f{ef} g>fed |{d}', 'd>e (f/d/)(e/B/) (d/A/)(B/F/) (E/F/G/).F/ ED |1 (dc/d)']  
X:1
L:1/8
M:4/4
K:D
 (A,<D) D>E D>EDA, | (B,E) E>F{F} G>FED | (FA)A>B d>e{de} f>e |{e} d>B (A/B/d/).F/ E>FED :: 
 (A3 d) d3 e |{c} d3 e d2 A2 | (B3 e) e3 f{ef} g>fed |{d} f>edB (Ag) f>e | 
{e} d>B (A/B/d/).F/ E>FED :| A,/B,/D/E/ D/A,/D/E/ F/G/E/F/ (D/E/).D/.A,/ | 
 (B,/D/E/F/ E/)(B,/E/F/) (A/F/)(d/F/) E>D | (D/E/F/G/) A>B (A/D/)F/A/ d>e | 
 (f/d/)(e/B/) (d/A/)(B/F/) (E/F/G/).F/ ED :| |1 !>!DD/ (dc/d) f>d dc/d/ | Ddfe d2 A2 | 
 E=GB^d (ed).e.f | (ga)(fg){f} e2 =d2 | (fd).e.f (dA).B.d | (FA)(EF) (AB).d.e | f>de>B d>AB>F | 
 (EFG).F E2 D2 :|  