Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:Gmin
['B2 B2 F>Bd>B c>bc>d e>dc>B A>Bc>d c>BA>G', 'B2 c>fa>g (3feg f>e d>fb>a g2 g>f'  
X:1
L:1/8
M:4/4
K:Gmin
 B2 B2 F>Bd>B | c>bc>d e>dc>B | A>Bc>d c>BA>G | (3FAc f>g f>ed>c | B>dF>B (3DFB d>B | 
 e>gc>e (3FAc e>c | (3Bac (3BAG F2 G>A | B2 d2 B2 :| c>fa>g (3feg f>e | d>fb>a g2 g>f | 
 (3edc (3dcB (3afe (3dcB | (3FAc f>gB>dF>B (3DFB d>B | e>gc>e (3FAc e>c | (3Bac (3BAG F2 G>A | 
 B2 d2 B2 :|  