Compose a musical piece using the designated musical pattern's alphabetic representation and the assigned melodic theme.
X:1
L:1/8
Q:1/8=140
M:6/8
K:Amin
['', 'e2 d', 'g2 e']  
X:1
L:1/8
Q:1/8=140
M:6/8
K:Amin
 d |: A>BA e2 d | B>AB d2 B | ABA e2 d | BAB dBA | A>BA e2 d | B>AB d2 B | de^f g2 e | dBg dBA :| 
 e2 a aga | bab g2 e | e2 a aga | bab ged | e2 a aga | bab g2 e | bab g2 e |1 g2 e dBA :|2 
 g2 e dBG | A6 |]  