Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The type
read-only property of the MIDIPort
interface returns the type of the port, indicating whether this is an input or output MIDI port.