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
['DAFA DAFA defe dcBA eAfA', '(3(AAA) fA (3(AAA)']  
X:1
L:1/8
M:4/4
K:D
 (AF) | DAFA DAFA | defe dcBA | eAfA gAfA | edcB AGFE | DAFA DAFA | defe dcBA | eAfA gece | 
 d2 f2 d2 :: (cd) | eA (3(AAA) fA (3(AAA) | gA (3(AAA) fA (3(AAA) | eAfA gAfA | 
 (3(efe) (3(dcB) (3(ABA) (3(GFE) | DAFA DAFA | defe dcBA | eAfA gece | d2 f2 d2 :|  