Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['D3 A B2 AB defd Beec d2', 'fe d2 dB AGFA B2 Bd egfe'  
X:1
L:1/8
M:4/4
K:D
 D3 A B2 AB | defd Beec | d2 dB AGFA | BGEF G2 FE | DEFA BAFA | defd e2 fg | agfg eBBB |1 
 ABde fdcd :|2 ABde fddc || defd Adfa | bgef g2 fe | d2 dB AGFA | B2 Bd egfe | defd Adfa | 
 bgef g2 ag | f d3 e B3 |1 ABde fddc :|2 ABde fdcd ||  