Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['d2 Bd'  
X:1
L:1/8
M:4/4
K:G
|: BA |"G" G2 GA BGBd |"C" egge"D" dBAG |"Am" EAAG AB"D"AG |"Am" EAAG"D" AcBA |"G" G3 A BGBd | 
"C" e2 ge"D" dBAG |"G" EGGG"Em" BG"D"AG |"Em" EG"D"FA"G" G2 :: ga |"G" bg g2"D" agef | 
"C" g3 e"G" d2 Bd | eaag abag | eaag a2 ga |"G" b3 g"D" agef |"C" g3 e"D" d2 Bd | 
"C" eg g2"G" bgag |"D" eggf"G" g2 :: Bd |"C" e3 c"G" d2 Bd |"D" cA A2"G" B2 AG |"Am" EAAG ABAG | 
 EAAG"D" ABcd |"C" ecce"G" dB B2 |"D" cA A2"G" BGAG |"C" EG G2"G" BG"D"AG |"C" EGGF"G" G2 :|  