Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['', 'DEFD GFDC B,G,B,C DEFD GFGB', 'edef gBBA BcBA GBdB (3A_B=B cd gdeg'  
X:1
L:1/8
M:4/4
K:G
 D |: G2 FG DEFD | GFDC B,G,B,C | DEFD GFGB | dBcA GF D2 | DGFG DEFD | GFDC B,G,B,C | DEFD GFGB |1 
 AGFA G3 D :|2 AGFA G2 ef |: gdeg GBdg | bgag edef | gBBA BcBA | GBdB (3A_B=B cd | gdeg GBdg | 
 bgag edef | gd^cd BGFG |1 FGAF G2 ef :|2 FGAF G3 ||  