Compose melodic phrases utilizing the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/4
K:D
['d2 fd afed', 'A,2 afd=c B^def geBe dcBA B g2', 'A d2', 'A3 efg afd c3 e3 afd bge'  
X:1
L:1/8
M:2/4
K:D
|: d2 fd | afed | efge | dcBA | d2 fd | afed | cedB | A2 A,2 :: afd=c | B^def | geBe | dcBA | 
 B g2 B | A a2 g | fedc | d2 D2 ::[M:12/8][K:D] d2 f e2 g fad c2 A | d2 f eag f3 e3 | 
 b2 g ebg a2 f daf | egf edc d3- d3 :: F2 A d2 c BdB A3 | efg afd c3 e3 | afd bge afd ecA | 
 Bcd edc d3- d3 :|  