Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['.e.f g2 .f.e (de).d.B [FA]2 D4 [ce]f', '[Bg]2 [Bg]2', '[B,G]4 .A.B [Gc]2 BA (GA)Bc [FA]2 D4'  
X:1
L:1/8
M:4/4
K:G
 .e.f | g2 .f.e (de).d.B | [FA]2 D4 [ce]f | [Bg]2 .f.e (dA).B.c | .B2 G3 :: .e.f | 
 [Bg]2 [Bg]2 [Bg]2 .f.g | [ca]2 [ca]2 [ca]2 .e.f | (gf).g.a [Bg]2 [Fd]2 | [GB]2 [B,G]4 :: .A.B | 
 [Gc]2 BA (GA)Bc | [FA]2 D4 [GB][Ac] | d2 cB ABcd | [GB]2 [B,G]4 :|  