Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:G
['B2 Bc dedc', '|{a} gfga'  
X:1
L:1/8
M:4/4
K:G
|: dc | B2 Bc dedc | B2 Bc dedc | B2 G2 G2 cB | A2 D2 D2 dc | B2 Bc dedc | B2 Bc dedc | BdGB cAFA | 
 G2 G2 G2 :: d2 |{a} gfga gdBd |{a} gfga gdBd |{a} gfga b2 bg | fefg afdf | e2 ef gece | 
 d2 de dBGB | A2 AB cAFA | G2 B2 G2 :|  