Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:4/4
K:Amin
['EAAB edBd', 'A2 edef gage dedB dedB edef gaba']  
X:1
L:1/8
M:4/4
K:Amin
 A | EAAB edBd | EAAB GABd | EAAB edBd | ef/g/ dB A2 A2 :: edef gage | dedB dedB | edef gaba | 
 gedB A2 A2 :|  