MIDIUSB icon indicating copy to clipboard operation
MIDIUSB copied to clipboard

Allow for multiple virtual MIDI cables (ports)

Open ab5tract opened this issue 7 years ago • 2 comments
trafficstars

The class compliant USB MIDI spec allows for 16 separate MIDI "virtual cables" (their terminology). This library appears to hardcode all transmissions to a single port.

ab5tract avatar Dec 28 '17 14:12 ab5tract

16 virtual cables can only be used if a Teensy board is used. According to the datasheet s the Leonardo / Pro Micro boards have 6 configurable USB endpoints, so besides the 2 endpoints in use for Serial via USB, it should be possible to configure it with a total of 4 virtual cables, right?

Does anyone know what needs te be changed to allow for multiple virtual cables? I would like to help in adding this functionality, but I don't know where to begin ;)

snodecoder avatar Sep 02 '20 11:09 snodecoder

https://github.com/lathoub/Arduino-USBMIDI implements cables (and uses this library to implement the underlying USB calls). See example https://github.com/lathoub/Arduino-USBMIDI/tree/master/examples/CableNumber (specific cable nr) and https://github.com/lathoub/Arduino-USBMIDI/blob/master/examples/SysEx_Teensy4.1/SysEx_Teensy4.1.ino (multiple cables)

lathoub avatar Oct 04 '20 07:10 lathoub