Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/16
M:3/4
K:Bb
['B,2BA B2B,2 C2B2 D2BA B2D2 E2g2 f2ga', 'B4 F2f=e f2F2 G2f2 A2f=e f2A2 B2b2'  
X:1
L:1/16
M:3/4
K:Bb
 B,2BA B2B,2 C2B2 | D2BA B2D2 E2g2 | f2ga (bf)gf (ed)cB | (BA)Bd (cB)AG (FD)EC | B,2BA B2B,2 C2B2 | 
 D2BA B2D2 E2g2 | f2ga (bf)gf (ed)cB | (BA)Bd c4 B4 :: F2f=e f2F2 G2f2 | A2f=e f2A2 B2b2 | 
 a2c'=e f2ac d2b2 | (ag)f=e f4 f4 | (fg)_ag a2f2 e2d2 | (ed)ef e2B2 G2E2 | e2gf g2e2 c2A2 | 
 (BA)Bd (cB)AG (FE)DC | B,2BA B2B,2 C2B2 | D2BA B2D2 E2g2 | f2ga (bf)gf (ed)cB | (BA)Bd c4 B4 :|  