Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:6/8
K:D
['g f2 d edc d2 B AGF', 'g2 a'  
X:1
L:1/8
M:6/8
K:D
 g | f2 d edc | d2 B AGF | GAB dA(F | G)EE E2 g | f2 d edc | d2 B AGF | GAB dA(G | F)DD D2 :| g | 
 afd ded | gfg (a2 f) | g2 a baf | gee (ef)g |1 afd de(d | g)fg a2 f | g2 a bag | fdd d2 :|2 
 (f2 d) (e2 c) | d2 (B A)GF | GAB eA(G | F)DD D2 |]  