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:Amin
['AcBA BcdB AcBA Bcdg eaed cdea', 'cdec Aeae gdgd eaea gd d2 eAeA', "c'egb ac'ge", 'AEAc ec A2']  
X:1
L:1/8
M:4/4
K:Amin
|: AcBA BcdB | AcBA Bcdg | eaed cdea | eaed cdec :: Aeae gdgd | eaea gd d2 | eAeA dGdG | 
 Aeae dG G2 :: Acea c'egb | ac'ge gd d2 | ecea c'egb | ac'ge dB B2 :: AEAc ec A2 | GEcE G3 B | 
 AEAc ec A2 | GEGB A{c}A{G} A2 :|  