Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
['(f>e) .d2.A2 .F2.A2 d6 (cd) .e2.e2.e2.e2 e6', '(d>c) .B2(B2c2d2)'  
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
"^$" (f>e) | .d2.A2 .F2.A2 | d6 (cd) | .e2.e2.e2.e2 | e6 (de) | f2f2f2f2 | f4 (ag).B.e | 
 d2d2 (cdec) | d6 :| (d>c) | .B2(B2c2d2) | (e7/2d/)c2 (d>c) | .B2(B2c2d2) | e4 z .e.d.c | 
 .B2(B2c2d2) | e2ee (e2d3/2)d | (d2c>)c (c2B>)B | A4 z ABc | d2d>d d2d2 | d4- d.A.c.A | 
 .d2.A2 .F2.D2 | A6 (ABc/) | d2d3/2d d2d2 | d6 (ef) | (fe).d.c (ed).c.B |"^$" A6 |]  