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:G
['(3DEF G2 G2 d>e d>c G>A']  
X:1
L:1/8
M:4/4
K:G
 (3DEF |"G" G2 G>A"^(D7)" G2 d>e |"G" d>c B>A"^(D7)" G>A B>G |"Am" A2 A2 A2 G>A | 
"Em" B>A B>G"C" E2"D7" (3DEF |"G" G2 G>A"^(D7)" G2 d>e |"G" d>c B>A"^(D7)" G>A B>c | 
"G" d>B G>B"D7" c>A F>G | A2 G2"G" G2 :: B>c |"G" d2 d>e"D7" d2 e>f |"G" g>f e>d"C" e4 | 
 e>d c>B"Am" c>B A>G |"D7" F>G A>F D2 B2 |"C" c2 e>c"G" B2 d>B |"Am" A>B c>A"D7" G>A B>c | 
"G" d>B G>B"D7" c>A F>G | A2 G2"G" G2 :|  