Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:4/4
K:Edor
['BE (3E^DE', '(3fed e2 ge bege defa geef gfga'  
X:1
L:1/8
M:4/4
K:Edor
|: BE (3E^DE B,EGB | AD (3D^CD A,DFA | BE (3E^DE BABd | egfe dBAd | BE (3E^DE B,EGB | 
 AD (3D^CD A,DFA | BE (3E^DE BABd |1 egfe dB A2 :|2 egfe dBAB |: e2 ge bege | d2 (3fed ad (3fed | 
 e2 ge bege | defa geef | gfga bgaf | gfed edBd | (3efg fe dfe^c | dBAF GE E2 :|  