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
['D3 E G3 A', 'G2 d gfga gbag fdfg fagf edef']  
X:1
L:1/8
M:2/2
K:G
 GE | D3 E G3 A | BGdG cBAG | FGFE DEFG | AFdF E3 F | D3 E G3 A | BGBd efge | dcBA GFGA | 
 B2 G G2 :: d | gfga gbag | fdfg fagf | edef gfed | B2 e>f efge | dBGB B/c/d cB | egfa g2 fe | 
 dcBA GFGA | B2 G2 G2 :|  