encapsulated midi input stuff (more than it already was)