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=160
M:6/8
K:G
['D GBB BAB GBB BAG', 'g aba afd gag gfe d^cd']  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
 D | GBB BAB | GBB BAG | FAA A2 D | FAA A2 D | GBB BAB | GBB BAG | def gdc | BGG G2 :| g | 
 aba afd | gag gfe | d^cd gdB | BAA A2 g | aba afd | gag gfe | d^cd gd=c | BGG G2 :|  