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:2/4
K:D
['DDFF AA F2']  
X:1
L:1/8
M:2/4
K:D
 | DDFF | AA F2 | cA A2 | dF A2 | DDFF | AA F2 | cAA<f | d->df>e | d<F(3dFd | c<EG<e | c<E(3cEc | 
 d<FA<f | d2 z2 |]  