MIDIOutput
The MIDIOutput interface of the Web MIDI API provides methods to add messages to the queue of an output device, and to clear the queue of messages. Available only in secure contexts.
Properties
The connection read-only property of the MIDIPort interface returns the connection state of the port.
The manufacturer read-only property of the MIDIPort interface returns the manufacturer of the port.
The state read-only property of the MIDIPort interface returns the state of the port.
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.
Functions
The close() method of the MIDIPort interface makes the access to the MIDI device connected to this MIDIPort unavailable.
The send() method of the MIDIOutput interface queues messages for the corresponding MIDI port.