PortOut – sends midi messages to a computer over USB

class usb_midi.PortOut

You cannot create an instance of usb_midi.PortOut.

PortOut objects are constructed for every corresponding entry in the USB descriptor and added to the usb_midi.ports tuple.


Write the buffer of bytes to the bus.

Returns:the number of bytes written
Return type:int or None