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
['A>F ED E2 FG', 'D2 A>G FABd c3 c dc{c} B>A']  
X:1
L:1/8
M:4/4
K:D
 AB/c/ | d>c B>A d3 B | A>F ED E2 FG | A2 FD GF{F} E>D | D6 AB/c/ | d>c BA d2 FB | A>F ED E2 FG | 
 A>A F2 GF{F} E>D | D2 D2 D2 || A>G | FABd c3 c | dc{c} B>A A2 z A | Bcdf edcB | A6 AB/c/ | 
 d>c BA d2 FB | AF E>D E2 FG | A2 FD GF{F} E>D | D6 ||  