Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:6/8
K:Emin
['E2 F G2 A B2 A B^cd', 'e2 f g2 e'  
X:1
L:1/8
M:6/8
K:Emin
 E2 F G2 A | B2 A B^cd | DED F2 G | AdB AFD | E2 F G2 A | B2 A B^cd | edB cBA | BGE E3 :: 
 e2 f g2 e | fag fed | e2 f g2 e | fdB B2 B | e2 f g2 e | fag fed | edB cBA | BGE E3 :|  