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
['fd d2', 'a3 b afdf']  
X:1
L:1/8
M:4/4
K:D
 fd d2 eB B2 | d2 Ad faag | fd d2 ABdB | AFdF E2 D2 | d3 f eB B2 | dfeg faag | f2 dB ABdB | 
 AFDF E2 D2 || a3 b afdf | afdf afdf | a3 b afdf | gfed Bcdf | a3 b afdf | abaf gfga | 
 b/a/g a/g/f gfef | g2 fa gbag ||  