Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/16
Q:1/4=120
M:3/8
K:G
['B2A2G2 F4 AB', 'B2BdBG B2BdBG A2AcBA'  
X:1
L:1/16
Q:1/4=120
M:3/8
K:G
 D2 | B2A2G2 | F4 AB | c2AcAc | B2G2D2 | B2A2G2 | F4 AB | c2AcAF | G4 :| D2 | B2BdBG | B2BdBG | 
 A2AcBA | B2G2D2 | B2BdBG | B2BdBG | A2AcBA | G4 :|  