Compose a tune that integrates the letter-based representation of the determined musical pattern and the given melodic idea.
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
['fdd cAA BGB A2 G FAA def', 'FAA BAA FAA']  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
 e | fdd cAA | BGB A2 G | FAA def | gfg e2 g | fdd cAA | BGB A2 G | FAA def | gec d2 :| E | 
 FAA BAA | FAA BAA | FAA def | gfg e2 g | fdd cAA | BGB A2 G | FAA def | gec d2 :|  