Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:G
['G2 Bd dBdg e d2 B A3', 'AcBA GE E2 DEGA'  
X:1
L:1/8
M:4/4
K:G
|: G2 Bd dBdg | e d2 B A3 B | G E3 DEGA | B2 dB AGED | G2 Bd dBdg | e d2 B A3 B | G E3 DEGB |1 
 AGAB G2 G2 :|2 AGAB G2 (3Bcd |: edcB c2 eg | dBgB AcBA | GE E2 DEGA | B2 dB AGBd | edcB c2 eg | 
 dBgB AcBA | GE E2 DEGA |1 AGAB G3 :|2 B2 B2 AGED ||  