Compose a tune that integrates the letter-based representation of the determined musical pattern and the given melodic idea.
X:1
L:1/16
M:2/4
K:G
['e2d2 BABd', 'GBAG F2A2 ABcd e2d2']  
X:1
L:1/16
M:2/4
K:G
|:"^tr" g4"^tr" f4 | edef e2d2 | BABd e2d2 | BABd e2>f2 |"^tr" g4"^tr" f4 | edef e2d2 | BABd e2d2 | 
 BGAF G4 :: D2G2 GBAG | F2A2 ABcd | e2d2 BABd | e2A2 ABAF | D2G2 GBAG | F2A2 ABcd | e2d2 BAFA | 
 G8 :|  