Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:D
['D2 D2 DEFD A2 A2 ABcA'  
X:1
L:1/8
M:2/2
K:D
 AF |"D" D2 D2 DEFD |"A7" A2 A2 ABcA |"D" d2 df"Em" edcB |"E7" A^GAB"A7" A=GFE |"D" D2 D2 DEFD | 
"A7" A2 A2 ABcA |"G" BdcB"A7" AGFE |"D" D2 d2 d2 :: de |"D" fefg"F#" fedc |"Bm" dcde dcBA | 
"G" Bcdc"^/F#" B2 ef |"Em" gafg"A7" e2 de |"D" fefg"F#" fedc |"Bm" dcde dcBA |"G" Bcde"A7" fgef | 
"D" d2 d2 d2 :|  