Compose a tune that integrates the letter-based representation of the determined musical pattern and the given melodic idea.
X:1
L:1/16
Q:1/8=120
M:6/8
K:D
['cd edcBA2 BAGFE2 FGA2A2', 'a2f2d2 edcBA2 edcBA2 Bcd2B2 cde2c2 f2gfed e2fedc']  
X:1
L:1/16
Q:1/8=120
M:6/8
K:D
"^vivace" AG | F2D2A2 A4 cd | edcBA2 BAGFE2 | FGA2A2 BAF2D2 | B2E2EF E4 AG |"^5" F2D2d2 d4 cd | 
 edcBA2 BAGFE2 | FGA2A2 f4 e2 | d2 D4 z4 || fg |"^9" a2f2d2 a2f2d2 | edcBA2 edcBA2 | 
 Bcd2B2 cde2c2 | f2gfed e2fedc |"^13" d2edcB A2F2A2 | BABcd2 BABcd2 | agfga2 B4 z2 | A4 z2 e4 dc | 
"^17" d2A2F2 d2A2F2 | BAGFE2 BAGFE2 | FGA2A2 f4 e2 | d2 D4 z4 |]  