Develop a musical piece that combines the given theme and letter-structured outline.
X:1
L:1/8
M:4/4
K:C
['BEA |[M:2/2][K:G]SOSOO .!fermata!PMTuCOMD>F G3 B A2 A>c', 'dg{a}gf g2 f>g a>ba>g']  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:2/2][K:G]SOSOO .!fermata!PMTuCOMD>F | G3 B A2 A>c | d>ge>d c>AA>c | B>dB>G (3ABc A>F | 
 G>BA>G F>DE>F | (TGFG>)B A2 (3ABc | d>ge>d c>AA>g | Tfef>a e>cA>c | B>GA>F G2 :: B>c | 
 dg{a}gf g2 f>g | a>ba>g f>dd>c | B>cB>G (3ABc A>F | G>BA>G F>D D2 | dg{a}gf g2 f>g | 
 a>ba>g f>dd>e | fef>a e>cA>c | B>GA>F G2 :|  