Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
M:7/8
K:Emin
['EF GA F2 B EF GB dBA', 'dB ^c/^d/ef', "c'2 ba gab a2 gf efg fB", 'fd edB']  
X:1
L:1/8
M:7/8
K:Emin
 EF GA F2 B | EF GB dBA | B2 e2 dBA | Be BA dAF | EF GA F2 B | EF GB dBA | g2 fd edB |1 
 ^c/^d/e BA =dAF :|2 ^c/^d/e BA c/d/ef |: g2 eg bag | fB B2 def | B2 AF dAF | AB dB ^c/^d/ef | 
 g2 eg bag | fB B2 def | b2 ab gfe |1 fe dB ^c/^d/ef :|2 ^c^d ef gab || c'2 ba gab | a2 gf efg | 
 fB ^df b2 a | fb af ef/a/b | c'2 ba gab | a2 gf efg | fB B2 ^c/^d/ef | ^c^d ef gab | c'2 ba gab | 
 a2 gf efg | fB ^df b2 a | fb af ef/a/b | c'4 e'd'c' | b2 ab d'c'b | a2 a2 gfa- | a a2 f agf |: 
[K:D] e2 fd edB | de B2 ABd | e2 fd edB | aB ^g2 fed | e2 fd edB | AB d2 ABd | g2 fd edB |1 
 c/^d/e BA =def :|2 c/^d/e BA =dAF ||  