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:12/8
K:Amix
['d2 f e2 d c2 A B2', 'e2 a a2 g']  
X:1
L:1/8
M:12/8
K:Amix
|: e3 e2 e d2 f e2 d | c2 A B2 A a3 a2 g | efe efe d2 f e2 d | c2 A B2 ^G A3 A3 :| 
 e2 a a2 g e2 d Bcd | e2 a a2 g e2 g d2 f | e2 a a2 g e3 efe | d2 d e2 f g3 f2 g :|  