Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/2
K:G
['GABc dGB<G =FGAB{d} cA^FA GABc dBGB', 'GABc dgfd'  
X:1
L:1/8
M:2/2
K:G
 GABc dGB<G | =FGAB{d} cA^FA | GABc dBGB | cAFG AGGF :: GABc dgfd | (3cdc AB{d} c/c/AFA | 
 GABc dgfd |{cd} cAFG AGGF :|  