break out constants and midi-specific utilities