Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:6/8
K:G
['(BG).G (BG).G (B>c).B (BA).G (dB).d (gd).B', '(bg).g (af).f'  
X:1
L:1/8
M:6/8
K:G
|: d/c/ | (BG).G (BG).G | (B>c).B (BA).G | (dB).d (gd).B | (A>BA) A2 (d/c/) | (BG).G (BG).G | 
 (B>c).B (BA).G | (dB).d (gd).B | (A>GA) G2 :: (g/a/) | (bg).g (af).f | (g>f).e .d.c.B | 
 (bg).d' (af)d' | (ge).c d'2 (d'=c') | (bg).g (af).f |{ef} (g>f).e (dc).B | (dB).d (gd).B | 
 (A>GA) .G2 :|  