Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:3/4
K:G
['d>B (3(GAB) (3(cAB)', 'g>f (3(e^de) fa (3(gfg) (3(e^de) B2'  
X:1
L:1/8
M:3/4
K:G
 d>B (3(GAB) (3(cAB) | G>B (3(dBd) g2 | d>B (3(GAB) (3(cAB) | G>A (3(FAF) D2 | 
 d>B (3(GAB) (3(cAB) | G>B (3(dBd) g2 | d>B (3(GAB) (3(cAB) | (3(GAF) G2 G,2 :: 
[K:Emin] g>f (3(e^de) fa | (3(gfg) (3(e^de) B2 | g>f efga | aggf f2 | g>f (3(e^de) fa | 
 (3(gfg) (3(e^de) B2 | Bc (3(AcB) (3(GAB) | (3(cAF) G2 G,2 :|  