Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:Edor
['G2 EF GFGA B2 gB', 'E3 e e2 (3gfe be (3gfe e^def'  
X:1
L:1/8
M:4/4
K:Edor
 F | G2 EF GFGA | B2 gB fBed | BEEF GBAG | FDDF ADFA | G2 EF GFGA | B2 gB fBec | d2 ce dBAF | 
 FEED E3 :| e | e2 (3gfe be (3gfe | e^def e=dBc | dA A2 eAce | dcAG FDEF | G2 EF GFGA | 
 B2 gB fBec | d2 ce dBAF | FEED E3 :|  