Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/16
M:3/8
K:A
['(cd) e2c2 (cB)(dB).A.^G A2c2e2', '(ce)(ag).f.e (dc)(de).f.d', 'A4 E^G [EB]2[EB]2[EB]2 [EB]4 ce [Fd]2[Fd]2[Fd]2 [Fd]4'  
X:1
L:1/16
M:3/8
K:A
 E2 | A2c2e2 | (ed).f.e(dc) | d2(d^c).d.e | (cd) e2c2 | (cB)(dB).A.^G | A2c2e2 | E2^G2B2 | 
 (B2A2).E2 | A2c2e2 | (ed).f.e(dc) | d2d^cde | (cd) e2c2 | (cB)(dB).A.^G | A2c2e2 | e2f2g2 | a4 :: 
 ed | (ce)(ag).f.e | (dc)(de).f.d | (ce)(ag).f.e | (dc)(de).f.d | c2e2a2 | B2d2f2 | (fe)(ce).d.B | 
 A4 :: E^G | [EB]2[EB]2[EB]2 | [EB]4 ce | [Fd]2[Fd]2[Fd]2 | [Fd]4 cd | B2c2d2 | (f2e2) (dB) | 
 A2c2e2 | [ca]4 :|  