Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/2
K:D
['', 'B2 AG', 'd2 df afdf'  
X:1
L:1/8
M:2/2
K:D
 D |: B2 AG FEDG | (3FED AD FGAc | B2 AG FEDF | GFEF GABc :| d2 df afdf | gefd edBc | d2 df afdf | 
 edBd ee<ee | d2 df afdf | gefd edBc | dedB ABde | fgec dedc ||  