Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['DEFG A2', 'D2 defd efge agfg ecAG FGAB =cAGF'  
X:1
L:1/8
M:4/4
K:D
 F/E/ | DEFG A2 AB | =cAdB cAGE | DEFG A2 GF | EFGE FD D2 :: defd efge | agfg ecAG | FGAB =cAGF | 
 EFGE FD D2 :|  