Make midi buffer more LV2 compliant. More POSIXey functions.