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:6/8
K:D
['A3 A>Bc d3 d>ef e2 c>Bc d3-']  
X:1
L:1/8
M:6/8
K:D
 z |"A7" A3 A>Bc |"D" d3 d>ef |"G" e2 d"A7" c>Bc |"D" d3- d>cB |"A7" A3 A>Bc |"D" d3 d>ef | 
"G" e2 d"A7" c>Bc |"D" d3- d2 |]: e |"D" f3 f>ed |"A" e3- e2 d |"A" c>de e>dc |"G" B3"A7" e2 c | 
"G" d>ed"A7" c2 A |"G" B>cd"A7" c2 A |"Bm" B2 A"E7" ^G>FG |"A" A3- A2 :|  