Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:C
['d>AB>G F>dE>d D2 d2', '(3cBA B>c'  
X:1
L:1/8
M:4/4
K:C
[M:2/2][K:D] .abc (3ABc | d>f (3(edc) d>AB>G | F>dE>d D2 d2 | c>eA>d c>de>f | g>ef>d (3cBA B>c | 
 d>f (3edc d>AB>G | F>dE>d D2 d2 | (3edc B>c d>fe>c | d2 d>d d2 :: e>c | A>ce>c A>ce>c | 
 A>df>d A>df>d | B>ge>d c>de>f | g>ef>d (3cBA B>c | d>f (3edc d>AB>G | F>dE>d D2 d2 | 
 (3cBA B>c d>fe>c | d2 d>d d2 :|  