Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
['D2F2 A2d2 dcBc A4 A2c2 e2g2 gfef', 'd4 e4 dcBA a4 gfed fAfA gAgA'  
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
 D2F2 A2d2 | dcBc A4 | A2c2 e2g2 | gfef d4 | fAfA gAgA | eAeA fAfA | dAdA B2e2 | d2Mc2 d4 :: 
 e4 dcBA | !wedge!e2(e2c2A2) | a4 gfed | !wedge!a2(a2f2d2) | fAfA gAgA | eAeA fAfA | dAdA B2e2 | 
 d2Mc2 d4 :|  