tried to improve performance by receiving more midi events at once...