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
['f2 ed', 'f2 ed']  
X:1
L:1/8
M:4/4
K:D
|: f2 ed B3 d | ADFA BGBd | AFAd Bcde | fdgf e2 de | f2 ed B2 AF | A3 d B3 d | AFAd Bcde | 
 fdec d3 e :: f2 fa f2 ed | e3 a f2 ed | B2 cd ABde | fdgf efde |1 f3 a f2 ed | e3 a f2 ed | 
 BGdB ABde | fdec d2 de :|2 f2 ed B2 AF | A3 d B3 d | AFAd Bcde | fdec d3 e ||  