Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:C
['BEA |[M:4/4][K:A]SOSOO .!fermata!PMTuCO(3MEFG A2 A2 E>Ac>A B>AB>c', '(G>A) B>eg>f (3edf e>d c>ea>g f2 f>e'  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:4/4][K:A]SOSOO .!fermata!PMTuCO(3MEFG | A2 A2 E>Ac>A | B>AB>c d>cB>A | G>AB>c B>AG>F | 
 (3EGB e>f e>dc>B | B>cE>A (3CEA c>A | d>fB>d (3EGB d>B | (3AGB (3AGF E2 F>G | A2 c2 A2 :: (G>A) | 
 B>eg>f (3edf e>d | c>ea>g f2 f>e | (3dcB (3cBA (3ged (3cBA | (3EGB e>f e>dc>B | A>cE>A (3CEA e>A | 
 d>fB>d (3EGB d>B | (3AGB (3AGF E2 F>G | A2 c2 A2 :|  