Design a musical piece in accordance with the given musical template in language.
'Compound Binary'  
X:1
L:1/8
M:2/2
K:D
 D3 d cAAB | cded cAGE | D3 d cAAB | cAGE EDDE | (3EFG AB =c2 AB | ^cded cAAg | fdec dcAB | 
 cAGE ED D2 :: d3 e f3 g | afge dcAG | Adde f2 ed | cAGE ED D2 | dcde fefg | afge defg | 
 afge fded | cAGE ED D2 ::"^variations" D3 d cAAB | cAdB cAGE | D2 dB cAAB | cAGE ED D2 | 
 (3EFG AB =cAAB | ^cAdB cAAg | faec dcAB | cAGE ED D2 :: Adde fefg | afge dcAG | Adde fded | 
 cAGE ED D2 | Adde fd (3efg | afge defg | afge f2 ed | cAGE ED D2 :|  