Compose a musical piece using the designated musical pattern's alphabetic representation and the assigned melodic theme.
X:1
L:1/8
Q:1/4=120
M:2/2
K:G
['g2 dc BdBG', 'Bdgd Ac Tc2 BdBG eg Tg2 dg']  
X:1
L:1/8
Q:1/4=120
M:2/2
K:G
"^Allegro"{g} g2 dc BdBG | g2 fg (ag/f/) gd |{G} g2 dc BdBG | ABcB B2 A2 :| Ac Tc2 Bdgd | 
 Ac Tc2 BdBG | eg Tg2 dg Tg2 | dcBA G2 G2 :|  