Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:Edor
['(3Bde ^d>f e>f g>f e>d (3cde d>B']  
X:1
L:1/8
M:4/4
K:Edor
 B>e ^d>f e3- e/f/ | g3- g/e/ f>e d>e | (3Bde ^d>f e>f g>f | e>d (3cde d>B A>d | 
 B>e ^d>f e>^d e>f | g>B e>g f>e d>e | (3Bde ^d>f e>f g>f | e>d (3cde d>B A>F | G2- G>B A>G A>B | 
 G>E E>F E>E E>F | G>F (3GAB A>B =c>A | B>e e>^d e>f e>B | G>F G>B A>G A>B | G>G F>G E>F G>A | 
 (3Bde ^d>f e>f g>f | e>d (3cde d>B A>d |]  