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
['AD D2', 'g2 fg']  
X:1
L:1/8
M:4/4
K:D
 dB | AFdA B2 dB | AD D2 AD D2 | AFAd BGBc | d2 eg fddB | AFdA B2 dB | AD D2 AD D2 | AFAd BABc | 
 d2 eg fd d2 || fafa g2 fg | eA (3cBA eA (3cBA | Af f2 g2 fg | (3agf (3gfe fdde | (3fga fa g2 fg | 
 eA (3cBA eA (3cBA | Af f2 g2 fg | (3agf (3gfe fd d2 ||  