Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
['(3(A/B/c/) dd ef', 'B>c BA Bc', 'z a>a fd ef gf'  
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
 (3(A/B/c/) | dd ef | dfe (3(A/B/c/) | dd ef | d2 c (3(A/B/c/) | dd ef | gfed | cA Bc | d2 d :: z | 
 B>c BA | Bc d2 | A>B AG | FG A2 | B>c BA | Bc dB | Ad ce | !>!d2 !>!d :: 
"^2nd version of 2nd strain" z | a>a fd | ef gf | !>!e>f ed | cde z | a>a fd | ef gf | ea ^gb | 
 !>!a2 !>!a :|  