Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['gfgA B2', 'edef g2 fg'  
X:1
L:1/8
M:4/4
K:G
 gfgA B2 BA | B2 BA Bddf | gfgA B2 ef | gfed efg z | gfgA B2 BA | B2 BA Bddf | gfgA B2 ef |1 
 gfed e4 :|2 gfed e3 B || edef g2 fg | afdf afed | edef g2 fg | afed e3 B | edef g2 fg | 
 afdf a2 ga | bgaf gfef |1 gfed e3 B :|2 gfed e3 z ||  