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
['DGGD GBAG FGAB c3 d egeg fdBA', 'g2 ag gfdc B2 AB G2 AB']  
X:1
L:1/8
M:4/4
K:G
|: DGGD GBAG | FGAB c3 d | egeg fdBA | ABAB GFEF | DGGD GBAG | FGAB c3 d | egeg fdBA |1 AGFA G4 :|2 
 AGFA G2 Bd || g2 ag gfdc | B2 AB G2 AB | cAAe dcAG | E/F/GAB cdef | g2 ag gfdc | B2 AB G2 AB | 
 cAAe dcAG | E/F/GAF g2 gg | g2 ag gfdc | B2 AB G2 AB | c3 A B2 AG | FGAF GFEA | DGGD GBAG | 
 FGAB c3 d | egeg fdBA | AGFA G4 ||  