Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/2=60
M:2/2
K:G
['D/D/D AF', 'defg abaf'  
X:1
L:1/8
Q:1/2=60
M:2/2
K:G
|: F | D/D/D AF ADDF | D/D/D AF BEEF | D/D/D AB defe | dBAF AD D :: f | defg abaf | gefd beef |1 
"^NB" defg abaf | ge a/g/f/e/ fd"^NB2"d :|2 defg (a/g/f) (g/f/e) | fbef dD D |]  