Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/2
K:G
['G2 FG (3EGE DF GABc d3 d'  
X:1
L:1/8
M:2/2
K:G
 (3DEF |"G" G2 FG (3EGE DF | GABc d3 d |"C" ef (3gfe"G" dBGB |"Am" ABAG"D7" FDEF | 
"G" G2 FG (3EGE DF | GABc d3 d |"C" ef (3gfe"G" dBGB |"D7" ABAF"G" G2 ::[K:D] AG |"D" FA- AA ABAG | 
 FAde f3 f |"G" gfeg"D" fedf |"Em" edcB"A7" ABAG |"D" FA- AA ABAG | FAde f3 f |"G" gfeg"D" fedf | 
"A7" efec"D" d2 :|  