Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:2/2
K:D
['EDB,A, DFEG FAGB', 'edBA dfaf gfge'  
X:1
L:1/8
M:2/2
K:D
 (3ABc | dcdA GFED | GEFD{F} EDB,A, | DFEG FAGB | Adce dfeg | fdAF GFED | DEFD{F} EDB,A, | 
 DFEG FAGB | Adce d2 :: (3ABc | dcdf edBA | dfaf gfge | dcdf ecAc | BA^GB A2 (3ABc | ecdf edBA | 
 dfaf gfge | afge fdec | Agfe d2 :|  