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:6/8
K:G
['D D>GGG>AB A2 G D2 A D2']  
X:1
L:1/8
M:6/8
K:G
 D | D>GGG>AB | A2 G D2 A | D2 z3 D | D>BB B2 B | A2 B d2 c/B/ | AAAAAD | G2 A B2 z | G>FE c2 F | 
 G4 z |]  