Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/8=120
M:2/2
K:Emin
['B2 G2', 'E2 F2', 'bg/a/b afa', '^dBd e3']  
X:1
L:1/8
Q:1/8=120
M:2/2
K:Emin
"^allegretto" E2 B2 A2 B2 | G2 AG F2 ED | EFGA B2 e2 | d2 B2 B4 |"^5" c2 cd B2 g2 | f2 e2 de f2 | 
 edBA GA B2 | G2 FE E4 ||"^9" B2 B2 cBAG | F2 EF GFE^D | E2 B,2 E2 F2 | G2 AG F2 ED | 
"^13" E2 F2 GFGA | B2 e2 Bedf | Be g2 fg a2 | f2 ed B2 GB |"^17" dBGB eBAG | F2 ED B2 BA | 
 GABG d2 dA | d2 dA BABc |"^21" dcBA G2 FE | FGAF D2 EF | GEEA F^DFB | G3 F/E/ E4 || 
[M:6/8]"^JIG""^25" G3 E2 B | G2 F AFD | GBe GBe | FAd FAd |"^29" B3 G2 B | c2 B AGF | GFE AF^D | 
 E3 E3 ||"^33" BGB BGB | dGd dGd | eAe eAe | g3 f3 |"^37" bg/a/b afa | bg/a/b afa | gfe ^dBd | 
 e3 e3 |]  