Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/2
K:Bmin
['B,2 BF', 'dfec (B2'  
X:1
L:1/8
M:2/2
K:Bmin
 B,2 BF AECA, | B,2 BF Bcdf | abae cAec | dfec (B2 B) :| ^a | bBgB aAec | bBfB aBfB | aBfB aAcA | 
 dfec (B2 B)^a | b(Bf)(B a)(Ae)c | bBfB def^g | afed cAAc | dfec (B2 B) ||  