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=180
M:4/4
K:Amin
['Bd e2 dB GABd eB B2 AGED', 'e2 ae beae']  
X:1
L:1/8
Q:1/8=180
M:4/4
K:Amin
 Bd | e2 dB GABd | eB B2 AGED | EBAG ABcd | eage d2 Bd | eBdB AGED | GDBD GABd | egdB GABd | 
 egdB A2 :| Bd | e2 ae beae | dedB GABd | e2 ae beae | dBGB ABcd | eAaA gA^fA | BcdB GABd | 
 (3ege a^f gedB | GABG A2 :|  