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:2/2
K:A
['eccA dBBG', 'B2 e2 c2 e2', 'c2 cd']  
X:1
L:1/8
M:2/2
K:A
 a | eccA dBBG | Aaag gffa | eccA dBBG | A2 c2 A2 :: z | B2 e2 c2 e2 | B2 e2 c2 e2 | BBBd ccce | 
 c2 B2 A2 :| z | c2 cd e2 c2 | B2 Bc d2 B2 | cBcd eagf | edcB A2 AB | c2 cd fedc | B2 Bc edcB | 
 c2 cd eagf | edcB Aagf ||  