Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:Gdor
['B2 d/c/B', 'g2 bg dgbg'  
X:1
L:1/8
M:4/4
K:Gdor
|: A | B2 d/c/B AFFA | B2 d/c/B fBdc | BfdB AFFA | dDA^F G2 G :| a | g2 bg dgbg | efaf cfaf | 
 g2 bg dgbg | ^fgaf g2 gd | gbdb caBg | fdcB AFFA | GABc dcBg | BGA^F G2 G ||  