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:4/4
K:C
['AF (GFG)(A', 'E2 (Ac) Bcd(f e2) ef ede(f ed)BA']  
X:1
L:1/8
M:4/4
K:C
[M:2/2][K:Emin] .abc (EF) | GE(EG B2) AF | (GFG)(A BA)GE | FDD(F A2) FA | d(cdB) AGFA | 
 GE (3(EFG) B2 AF | (GFG)(A B2) Bc | de (3(dcB) AGF(A | (3GFE) (FD) E2 || (Ac) | Bcd(f e2) ef | 
 ede(f ed)BA | GAB(c d2) de | (3dcB (gf) edBA | Bcd(f ed)e(f | ga)g(e dcB)c | d(e (3dcB A)GFA | 
 (3GFE (FD) E2 |]  