Compose a tune that integrates the letter-based representation of the determined musical pattern and the given melodic idea.
X:1
L:1/8
Q:1/4=140
M:4/4
K:G
['g2 dcBA GFGA BGDB,']  
X:1
L:1/8
Q:1/4=140
M:4/4
K:G
 (3(def) |"G" g2 fe"D" dcBA |"G" GFGA BGDB, |"D" DGFG"Em" EGFG |"G" BGcB"D" Adef | 
"G" g2 fe"D" dcBA |"G" GFGA BGDB, |"Am" CEAB cAfe |"D7" dcBA"G" G2 :: dc |"G" BB,DG Bdgf | 
"C" eCEG cege |"G" d^cde dBGB |"Am" cBA^G"D" Ad^c=c |"G" BB,DG Bdgf |"C" eCEG cege | 
"G" d^cde"D" d=cBA |"G" GgdB G2 :|  