Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['d2 FB A2', 'defg afed'  
X:1
L:1/8
M:4/4
K:D
|: gfe | d2 FB A2 FA | Bdeg fBcA | d2 FB A2 FD | EGFE Dgfe | d2 FB A2 FA | Bdeg fBcA | 
 d2 dB A2 FA | BdcB A- :: ABc | defg afed | cAeA fAeA | defg afed | cABc d3 A | defg afed | 
 cAeA fAeA |1 defg abag | fgfe d2 :|2 df f2 dg g2 | fgfe d ||  