Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
Q:3/8=110
M:9/8
K:G
['B2 dBG F2 AFD gbg f2 afd'  
X:1
L:1/8
Q:3/8=110
M:9/8
K:G
|:"^A""G" g3"^/" B2 e"^/" dBG |"D" A3"^/" F2 B"^/" AFD |"G" GBG"D/F#" dfd"Em" gbg | 
"D" a3"A7" f2 b"D" afd :|"^B""Em" geg"Dm" =fdf"C" ece |"G/B" dBd"D/A" cAc"G" BGd | 
"Em" geg"D/F#" afa"G" bgb |"F#m" afa"Em" geg"Dm" =fdf |"C" e3"G" d3"Am" c2 e | 
"G" dBd"D" cAc"G" BGd |"C" e3"D" f3"G" g2 c |"Em" BeA"D7" A2 G"G" G3 |]  