adopt to the change of Web MIDI API specification.