Compose a tune that integrates the letter-based representation of the determined musical pattern and the given melodic idea.
X:1
L:1/8
M:12/8
K:Emin
['BEG EGA', 'EAc BG(e e)dc BAG', 'Ace g2 (f f)ed', 'gge ga(e e)ed', 'eeB dg(e e)ed ega', 'Ace g2 (f (f6) f12) Ace']  
X:1
L:1/8
M:12/8
K:Emin
 EGA AEG GED BEG | EGA AGA cdc BEG | EGA AEG GED BEG | EGA ABG AAG cBG :| EAc BG(e e)dc BAG | 
 GAE EEA cd(B B)GF | EAc BG(e e)dc BAG | EGA ABG AAG cBG :| Ace g2 (f f)ed eA(c | 
 c)eg ffd eAc BAG | Ace g2 (f f)ed eg(a | a)eg fed eAc BAG :| z c'b gge ga(e e)ed | 
 ega ag(b b)ge gab | c'bg gge ga(e e)ed | edB cBG AcB egb | z c'b gge ga(e e)ed | 
 ega ag(b b)ge gab | c'bg gge ga(e e)ed | eeB dg(e e)ed ega || eeB dg(e e)ed ega | 
 eeB dge edB AGE | eeB dg(e e)ed ega | abg abg geg abg | eeB dg(e e)ed ega | eeB dge edB AGE | 
 eeB dg(e e)ed ega | abg abg gdg edB || Ace g2 (f (f6) | f12) | Ace gf(a (a6) | 
 (a3) a2) g/e/ d2 (e e3) | Ace g2 (f (f6) | f12) | Ace gf(b (b6) | (b3) b2) f f2 (e e3) ||  