Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:4/4
K:C
['A2 c BAB G2 e', 'g2 g']  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:6/8][K:G]SOSOO .!fermata!PMTuCOMdBA A2 c | BAB G2 e | dBA ABd | e2 d efg | dBA A2 c | 
 BAB G2 e | gbg faf | e2 d efg :: def g2 g | agf g2 g | def g2 a | bge edB | def g2 g | agf g2 g | 
 bag agf | e2 d efg :|  