Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:6/8
K:G
['gfg a2 g f2 A ABc', 'GBd g3 f2 d'  
X:1
L:1/8
M:6/8
K:G
 gfg a2 g | f2 A ABc | efe d2 c | B2 G GBd | gfg a2 g | f2 A ABc | ded cBA | G3 G3 :| GBd g3 | 
 f2 d c3 | ded c2 A | e2 d B3 | GBd g3 | f2 d c2 B | ABc def | g3 g3 :|  