Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:9/8
K:D
['AGF G2 B', 'G3 Add ded cAG FAd def gfg'  
X:1
L:1/8
M:9/8
K:D
 A3 AGF G2 B | ABA AGF G2 B | ADD AB=c dcB | =cBA GAF G3 :| Add ded cAG | FAd def gfg | 
 age cde dcB | AdF DEF G3 :|  