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:D
['bb g/f/g/e/ dd BB/G/', '', 'AA A/B/d/f/ aa ff/4g/4 a^g =ge']  
X:1
L:1/8
M:4/4
K:D
 g/4a/4 | bb g/f/g/e/ | dd BB/G/ | FA ce | e/d/^c/d/ Bg/a/ | bb g/f/g/e/ | dd BB/G/ | 
 F/G/A/B/ c/d/e/f/ | gf g :| D/4E/4F/4G/4 |: AA A/B/d/f/ | aa ff/4g/4 | a^g =ge | ba ^ga | 
 AA A/B/d/f/ | aa ff/4g/4 | a^g =ge | df d>B ||  