Develop a musical piece that combines the given theme and letter-structured outline.
X:1
L:1/8
M:12/8
K:G
['(agf) (gdc) (Bcd) (efg)', 'd3 d3 (ed^c) (dAF) (DFA) (cBc) a2']  
X:1
L:1/8
M:12/8
K:G
 f3 (agf) (gdc) (Bcd) | (efg) (dcB) (ABG) (AFD) | (gfg) (agf) (gdc) (Bcd) | 
 (efg) (afd) (ge^c) d3 :: d3 (ed^c) (dAF) (DFA) | (cBc) a2 c{d} Tc3 B3 | (gfg) (agf) (gdc) (Bcd) | 
 (efg) (dBG) (cAF) G3 :|  