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/8=180
M:4/4
K:G
['dged B2 Ac BGAG EAAc BGBd cdeg', 'g3 a gfeB d2 ed BGBc dggf']  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 e | dged B2 Ac | BGAG EAAc | BGBd cdeg | fgaf gfeB | dged B2 Ac | BGAG EAAc | BGBd cdeg | 
 fgaf g3 :| e | g3 a gfeB | d2 ed BGBc | dggf gfeB | dega bgaf | g3 a gfeB | d2 ed BGBc | 
 dggf gfed | egaf g3 :|  