Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:D
['B2 B2', 'B2 B2'  
X:1
L:1/8
M:4/4
K:D
 (B3 c)(def^g) | a4 (b2 fd) |{f} e3 d (B2 G2) | A4 (F2 ^G^A) | (B3 c) (def^g) | a4 (f2 a2) | 
 (b2 c'2 d'2) .b2 |{d'} (c'2 b2 a2) .f2 | (f2{gf} e2) d2 d2 | (c2 B2{cB} A2) .F2 | 
 (Bcde) (f2{gf} e>c) | B2 B2 B2 z || B | d2 e2 (fecd) | B2 B2 B3 B | d2 f2 (bafe) | 
 f2 b2 (b3 bc') | (d'c'ba) (bf)f>e | (d2 cB) (AF) .F2 | (Bcde) f2 f2 | (d'baf) ec .A2 | 
 B2 c2 (d2{ed} cB) | (c3 B) (A2 F2) | (Bcde) (f2{gf} e>c) | B2 B2 B2 z2 ||  