Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:2/4
K:C
['c2 ed']  
X:1
L:1/8
M:2/4
K:C
 cdcd | c2 ed | c4 | gfef | g2 ag | fede | f2 gf | edcd | c2 ed | c4 |]  