Compose melodic phrases utilizing the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/4=100
M:4/4
K:D
['d2 (ed/c/ d) A2 d efga f', 'z2 a2 ag/f/ g e2 f g2-'  
X:1
L:1/8
Q:1/4=100
M:4/4
K:D
 d2 (ed/c/ d) A2 d | efga f d2 e | fgab efga | de/f/ gf{f} e2 z2 || a2 ag/f/ g e2 f | 
 g2- gf/e/ f d2 e | (f/g/a) eg f/g/a eg | fd{f} ed/c/ d2 z2 |]  