Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:G
['G3 B dB', 'g3 a bg g2', ''  
X:1
L:1/8
M:4/4
K:G
 G3 B dB B2 | gBfB eBdB | G3 B dB (3BBB | dBAB GEDE | G3 B dB B2 | gBfB eBdB | g3 e dBge | 
 dged BAGF :: g3 a bg g2 | abag edBd | g3 a bg g2 | aged (3B^cd ef | g3 a bg g2 | abag edBd | 
 g3 e dBge | dged BAGF :| G3 ||  