Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:3/2
K:C
['GABc d2 G2 d4', 'B2 AG ABcd B2 AB'  
X:1
L:1/8
M:3/2
K:C
 GABc d2 G2 d4 | f2 c4 F2 ABcA | GABc d2 G2 d4 | g2 d4 cd B2 AG || B2 AG ABcd B2 AB | 
 c2 A4 F2 ABcA | B2 AG ABcd B2 AB | G2 D4 CD B,2 A,G, ||  