Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/8=120
M:4/4
K:G
['(3BAG E2']  
X:1
L:1/8
Q:1/8=120
M:4/4
K:G
"^anacr" DEFG A/B/ |"^1" cdcd cdcd | c8 | c8 | (3BAG E2 EFGA | B2 Bd AdBd |"^6" Ad B3 c (3BAG | 
 E2 GE AG (3BAG | AG (3BAG A2 (3BAG | E3 E/F/ G/A/B/d/ c2 |"^10" cdcd c2 BA | B2 Bd BdBd | 
 Bd B2 AG A2 | BdAd BdAd | B3 c (3BAG E2 |"^15" GEAG (3BAG AG | A2 cB AG E2 | GE A>G (3BAG AG | 
 G3 A (3BAG E2 |"^19" GEAG (3BAG AG | A2 cB AG E2 | GE A>G (3BAG AG | G3 A (3BAG E2 | 
"^23" B z (3BAG z A (3AGE | z B (3BAG z A (3AGE | G4 z A (3BAG |"^26" E2 GE AG (3BAG | 
 AG B/A/G/E/ (3DEG AG | G8 |]  