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:G
['G2 dG', 'Adfd egfg efga bgaf geed efga bge^c']  
X:1
L:1/8
M:2/2
K:G
 G2 dG BdGB | dGBd ecAF | G2 dG Bcde |1 dBcA BGAF :|2 dBcA BG G2 || egfg egfe | d2 fd Adfd | 
 egfg efga | bgaf geed | efga bge^c | defg afdB | G3 A Bcde | dBcA BGFA ||  