Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/16
M:2/4
K:C
['EF G2G2G2 cB B2A2A2 fd', 'A2EE E2cB A2EE E2Ac', '(3GAB c2E2E2 (3EFG A2D2D2 DC B,2D2G,2 A,B,', 'A2AA A2AA A2c2 F4'  
X:1
L:1/16
M:2/4
K:C
 EF | G2G2G2 cB | B2A2A2 fd | B2G2A2B2 | cBcd e2 EF | G2G2G2 cB | B2A2A2 fd | g2ag fGed | c2 z || 
 cB | A2EE E2cB | A2EE E2Ac | e2ee e2ee | e2ef edcB | A2EE E2cB | A2EE E2Ac | e2ef edcB | A4 z2 || 
 (3GAB | c2E2E2 (3EFG | A2D2D2 DC | B,2D2G,2 A,B, | C2E2G2 (3GAB | c2E2E2 (3EFG | A2D2D2 DC | 
 B,2D2G,2 A,B, | C2E2C2 :|[K:F] C2 | A2AA A2AA | A2c2 F4 | G2B2 E4 | F2A2 c2>B2 | A2AA A2AA | 
 A2c2 F4 | G2GB E2G2 | F2F2F2 :|  