Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/2
K:C
['cBAB cAGF', 'eg g2 agfg'  
X:1
L:1/8
M:2/2
K:C
 cBcd cBAB | cAGF EFGc | Ad{e}dc defe | dcAG FGAB | cedB cBAB | cAGF EDCE | DEFG ABce | 
 dcAG FD D2 || eg g2 agfg | efgf ec c2 | ea a2 bgag | eaag (3efg dg | eg g2 agfg | efge defg | 
 afge fdec | dcAG FD D2 ||  