Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:C
['(gf) e>c({d} (3cBc) G>E({F} (3EDE) Dd{e}d^c d3', 'ecgc acgc'  
X:1
L:1/8
M:4/4
K:C
|: (gf) | e>c({d} (3cBc) G>E({F} (3EDE) | Dd{e}d^c d3 f | ec({d} (3cBc) GFED | CcBd c2 :| (cf) | 
 ecgc acgc | Ad{e}d^c d3 f | ecgc acgc | GcBd c3 f | ecgc acgc | Ad{e}d^c d3 f | (3(efg) ag fedc | 
 GcBd cegf ||  