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:Amix
['A,2 EA,', '(3cBA eA', 'G2 DC', 'BGGB cA (3AAA eaed cAeA cAAB =cedc'  
X:1
L:1/8
M:4/4
K:Amix
|: B, | A,2 EA, FA,EA, | A,2 EA, CA,A,B, | A,2 EA, FA,EF |1 G2 DC B,G,G, :|2 G2 DC B,G,G, || d | 
 (3cBA eA aeed | (3cBA eA cAAB | (3cBA eA agef | gddc BGGB | (3cBA eA aeed | (3cBA eA cAAB | 
 =c2 dc B2 d=c | Bgd=c BGGB |: A,2 EA, FA,EA, | A,2 EA, CA,A,B, | A,2 EA, FA,EF |1 
 G2 DC B,G,G,B, :|2 G2 DC B,G,G,d || cA (3AAA eaed | cAeA cAAB | cA (3AAA agef | gedg BGGB | 
 cA (3AAA eaed | cAeA cAAB | =cedc B2 d=c | Bgd=c BGGB, ||  