Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/4=120
M:4/4
K:none
['d>g{aBd} B3/2{e}A{gAGAG}']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:none
 a/ | A2{GdGe} A3/2{d}B{gef} e>A{gBd} B>A |{g} G2{dGe} G3/2{d}A{e} G>A{gBd} B3/2{e}G | 
{g} A2{GdGe} A3/2{d}B{gef} e>d{g} (3Bcd |{gef} e>g{Gdc} d>g{aBd} B3/2{e}A{gAGAG} A3/2 :|{d} B/ | 
{gAGAG} Aa{g} a>g{g} (3efg{ag} a>e |{gf} g>a{f} g>e{Gdc} d>e{gf} g>f |1 
{g} ea{g} a>g{a} (3efg{ag} a>g |{aeg} e>g{Gdc} d>g{aBd} B3/2{e}A{gAGAG} A3/2 :|2 
{g} (3efg{ag} a>f{gf} g>f{gef} e>d |{g} (3efg{Gdc} d>g{aBd} B3/2{e}A{gAGAG} A3/2 |]  