Revert "midi"

This reverts commit a2273800af7ead0cb85b2655233b37aa0dd8233d, reversing
changes made to c708e9c400420b24f6a5b2b36d8f4c597c61fdcf.