Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/8
M:4/4
K:Emin
['E2 GB', 'B2 BG EG B2', 'f eBgf e2 fd dAfe d2 fg', 'f eBgf eBfe dAfe fAfg eBgf eBBA']  
X:1
L:1/8
M:4/4
K:Emin
 E2 GB E2 GB | A2 FA DEFD | E2 GB E2 GA | B (3cBA B AGF | E2 GB E2 GB | A2 FA dAFD | EGFA GBAd | 
 BAFG E4 || B2 BG EG B2 | A2 FA DEFD | B2 BG EG B2 | BGcA dBcA | B2 BG EG B2 | A2 FA dAFD | 
 (3EFG GA GBAc | BAFG E3 f || eBgf e2 fd | dAfe d2 fg | eBgf eBBA | BAGF GEEf | eBgf eBfe | 
 dA (3AAA FA d2 | (3EFG FA GBAC | BAFG E3 f || eBgf eBfe | dAfe fAfg | eBgf eBBA | BAGF GE E2 | 
 g2 gf eBfe | dA (3AAA FA d2 | (3EFG FA GBAc | BAFG E4 |]  