minor midi changes, global
some midi stuff, it compiles, it's not perfect