Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:G
['G2 BG', 'd2 gd'  
X:1
L:1/8
M:4/4
K:G
 DGGF G2 BG | G2 BG AGEG | DGGF GABd | egdB c2 BA | DGGF G2 BG | G2 BG AGEG | DGGF GABd | 
 egdB c2 Bc || d2 gd edgd | d2 gd BGBc | d2 gd edef | gedB c2 Bc | d2 gd edgd | d2 gd BGAB | 
 c2 cA B3 A | GABd egdB ||  