Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/8=240
M:2/4
K:E
['e>fg>e a>fg>d e>fg>e d2 f2 e>fg>e a>fg>e', '(3Bdf (3Bdf']  
X:1
L:1/8
Q:1/8=240
M:2/4
K:E
 e>fg>e | a>fg>d | e>fg>e | d2 f2 | e>fg>e | a>fg>e | g>b (3afd | e2 E2 || (3age (3Bdf | 
 (3Bdf (3Bdf | (3Bdf (3Bgf | (3Bgf (3fga | (3age (3Bdf | (3Bdf"^tr" f2 | (3egb (3afd | e2 E2 |]  