midi sequencing and state estimation