Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:D
['B2 BA', 'D EFED D2 F/G/A'  
X:1
L:1/8
M:4/4
K:D
 dc | B2 BA A2 AB | A2 AB AFdc | B2 BA B3 A | B2 Bc BA d/e/f | g2 gf e2 fe | f2 ed d2 cA | 
 d2 cA GAFD |1 E5 :|2 E4 z E || F/G/A | BAAF E3 D | EFED D2 F/G/A | BdAd GAFD | E5 F/G/A | 
 BAAF E3 D | EFED D2 F/G/A | GAFD E2 dc | A4 ||  