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:3/8=90
M:6/8
K:G
['G2 e dBG', 'g2 g gab']  
X:1
L:1/8
Q:3/8=90
M:6/8
K:G
 G2 e dBG | BBB B2 A | G2 e dBG | AAA ABA | G2 e dBG | B2 d g2 a | bag gfe | dec B2 A :: g2 g gab | 
 d2 d def | g2 g gab | e2 e e2 f | gfa gfe | def g2 a | bag gfe | dec B2 A :|  