Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:6/8
K:A
['c/d/ ecA a2 e faf ecA', 'cAA eAA fAA', '[AA,]2 [M:4/4][K:G] d/c/ BGdB A/G/F/E/ Dc BGgB{B}', '(3(e/f/g/) fe/d/ e2 dc/B/ c2 BGgB A3'  
X:1
L:1/8
M:6/8
K:A
 c/d/ | ecA a2 e | faf ecA | cea aec | BBB B2 c/d/ | ecA a2 e | faf ecA | def ecA | EAA A2 :: A | 
 cAA eAA | fAA eAA | cAA ecc | dBB B2 B | cAA eAA | fAA faa | aee ecc | cA[AE] [AA,]2 :| 
[M:4/4][K:G] d/c/ | BGdB A/G/F/E/ Dc | BGgB{B} A3 c | Bgfe dBec |{c} B2{B} TA2 G2 :: (3(e/f/g/) | 
 fe/d/ e2 dc/B/ c2 | BGgB A3 g | fdec dc/B/ ec |{c} B2{B} TA2 G2 :|  