Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
['f>g a>g f>e d>=c (3(BGB) (3(dcB)', '(3(dcB) A2'  
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
|: A<d | f>g a>g f>e d>=c | (3(BGB) (3(dcB) A3 A | G>B e>G F>A d>f | (3(efe) (3(dcB) A2 a>g | 
 f>g a>g f>e d>=c | (3(BGB) (3(dcB) A2 d>=c | B<d g>B A<d f>d | (3(efg) (3(gfe) d2 :: c2 | 
 B2 F<B ^A>c F<^A | B>c d>e f4 | g>f e<g f>e d<f | (3(efe) (3(dcB) A2 a>g | f>g a>g f>e d>=c | 
 (3(BGB) (3(dcB) A2 d>=c | B<d g>B A<d f>d | (3(efg) (3(gfe) d2 :|  