Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:9/8
K:G
['A3 dcA d2', 'FED GBB GBd g3 |1 f3 ege'  
X:1
L:1/8
M:9/8
K:G
|: A3 dcA d2 c | A2 d dcA GFG | A3 dcA d2 e |1 fag ege dBG :|2 fag ege dBA |: GBB GBd g2 (3DEF | 
 GBB GBG FED | GBB GBd g3 |1 f3 ege dBA :|2 fed ege dBG ||  