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
['', 'DEGA G3 A (3BAG Bd g2 fg', 'd2 e3 d efge dBAB']  
X:1
L:1/8
M:4/4
K:G
 GE |: DEGA G3 A | (3BAG Bd g2 fg | e3 g edBG | A2 GA GEEG | DEGA G3 A | (3BAG Bd g2 fg | 
 e3 g edBG |1 A2 GA GEEG :|2 A2 BA G3 E || g4 g2 ag | fefg e2 d2 | e3 d efge | dBAB GEEG | 
 g4 g2 ag | fefg e2 d2 | e3 d efge | dBAB G4 | g4 g2 ag | fefg e2 d2 | e3 d efge | dBAB GEEG | 
 DEGA G3 A | (3BAG Bd g2 fg | e3 g edBG | A2 BA G4 ||  