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:9/8
K:D
['BcB BGB', 'G efe edc Bcd e2 A A2']  
X:1
L:1/8
M:9/8
K:D
 BcB BGB c2 A | BcB BGB A2 G | BcB BGB cde | dBG GAB A2 G :: efe edc Bcd | e2 A A2 B cBA | 
 def gfe def | g2 G GAB A2 G :|  