pass in buffer-size when opening realtime audio line as default is very large otherwise (hardcoded to 64 at the moment)
exploring midi keyboard example
fixed event buffer calculation to be < cur-buffer + 1 (so, process events that should happen before the next buffer)