Compose a musical piece using the designated musical pattern's alphabetic representation and the assigned melodic theme.
X:1
L:1/8
M:4/4
K:Emin
['E3 F G3 A B2 Bc BAGF', 'BddB G3 B']  
X:1
L:1/8
M:4/4
K:Emin
|: E3 F G3 A | B2 Bc BAGF | E^DEF GFEG | A2 AG FAGF | E^DEF GFGA | BABc BAGF | EFGE AGFG |1 
 FE^DE E2 D2 :|2 FE^DF E2 dc |: BddB G3 B | cBcd eBdc | BddB G3 B | c A2 A Addc | BddB G3 B | 
 cBcd eBdc | BgdB gdBd |1 cAFA G2 dc :|2 cAFA G2 F2 ||  