Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/16
M:2/4
K:D
['D2D2 DFAF', '(fd).d.d fdad fd (3(efg)'  
X:1
L:1/16
M:2/4
K:D
 (3(GFE) | D2D2 DFAF | dFAF dFAF | E2(EF) GBEB | edcB AGFE | D2D2 DFAF | dFBF GFED | DFAg faec | 
 d2d2d2 :: vag | (fd).d.d fdad | fd (3(efg) a2ed | (cA).A.A ceAe | cdef g2eg | (fd).d.d fdad | 
 fd (3(efg) a2gf | gbag fedc | d2d2d2 :|  