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
['', 'AG AB', 'gc ac gc']  
X:1
L:1/8
M:4/4
K:Amin
 B |: AG AB (3cdc ae | gd BG ec dB | (3ABA AB (3cdc ae | gd Bd eA AG | AG AB cd ae | gd BG ec dB | 
 AG AB cB cd | ed cA EA AB :| (3cdc gc ac gc | ge fd ec AB | c2 gc ac gc | ga gf ed cB | 
 (3cdc gc ac gc | ge fd eB AG | AG AB c2 cd |1 ed cA EA AB :|2 ed cA EA AG | A8 ||  