Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:Emin
['edeg B2 BA G2 GA', 'gf e2'  
X:1
L:1/8
M:4/4
K:Emin
 ef | gfed edBd | edeg B2 BA G2 GA BABd | e2 A2 A2 ga | bagf gfed | edeg B2 BA | G2 GA BcBA | 
 G2 E2 E2 :: gf | e2 B2 B2 gf | e2 B2 B2 gf | e2 ef gfga | b2 e2 e2 ga | bagf gfed | edeg B2 BA | 
 G2 GA BcBA | G2 E2 E2 :|  