Assemble a piece of music by merging the alphabetic representation of the predetermined musical pattern and the provided melodic theme.
X:1
L:1/8
M:3/4
K:Amin
['e a>^g e3 d B>c A3 B', 'B2 c2 A>(c A)z/c/ (B{cB)}A ^GA B2']  
X:1
L:1/8
M:3/4
K:Amin
 e | a>^g e3 d | B>c A3 B | c>d e2 (g3/2{ag)}^f | d>^f e3 e | a>^g e3 d | B>c A3 B | c>d e2 B>d |1 
 c2 [AA]2 :|2 c2 [AA]4 |: c2 A>(c A)z/c/ | (B{cB)}A ^GA B2 | c2 A>(c A)z/c/ | (B{cB)}A ^GA B2 | 
 a>^g e3 d | B>c A3 B | c>d e2 B>d |1 c2 [AA]4 :|2 c2 [AA]2 ||  