Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:4/4
K:D
['a2 fa ec A2', '(3cBA eA'  
X:1
L:1/8
M:4/4
K:D
 a2 fa ec A2 | cAeA fAeA | a2 fa ec A2 | Bcdc BGGB | a2 fa ec A2 | cdef g2 fg | afge fdec | 
 Bcdc BG G2 :: (3cBA eA fAeA | (3cBA af ec A2 | (3cBA eA fAec | Bcdc BGGB | (3cBA eA fAed | 
 cdef g2 fg | afge fdec | Bcdc BGGB :|  