Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:6/8
K:Emin
['E3 GEG B2 A G3', 'gfd e3']  
X:1
L:1/8
M:6/8
K:Emin
|: E3 GEG | B2 A G3 | def dBG | A3 GFD | E3 GEG | B2 A G3 | ded dBG | ABc AFD ::[K:G] GBd g3 | 
 gfd e3 | GAB dBG | ABc AFD | GBd gbg | gfd e3 |1 efg aba | gfd edB :|2 efg abd' | baf g2 B ||  