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/2
K:D
['D2 (3(FED)', 'efge f>d (3(.d.d.d) fged cAGE (MED) D2', 'efge afge f2 ed']  
X:1
L:1/8
M:2/2
K:D
|: D2 (3(FED) AD (3(FED) | ABcd edcA | D2 (3(FED) A2 d2 |1 cAGF FDCE :|2 cAGE (MED) !fermata!D2 |] 
 f>d (3(.d.d.d) fddf | e>c (3(.c.c.c) efge | f>d (3(.d.d.d) fged | cAGE (MED) D2 || fede fedf | 
 edcd efge | afge f2 ed | cAGE EDC"_D.C."E |]  