Thanks for the project. It's very useful.
I'm using it for making a cheap and simple controller for guitarix, and I've found a bug when sending control messages.
When you send a single parameter message (like Program Change) the host plays it as two messages, one with the correct value and another one with 0 value.
Searching in the USB MIDI specification (https://www.usb.org/document-library/usb-midi-devices-10, page 16) results that the USB MIDI packet should have 32 bits and the first byte should contain the cable number and the message type.
So I've changed line 370 from
midiMsg[iii++] = 0x08;
to
midiMsg[iii++] = (inType>>4);
And everything woks.
Thanks again for the work.
Thanks for the project. It's very useful.
I'm using it for making a cheap and simple controller for guitarix, and I've found a bug when sending control messages.
When you send a single parameter message (like Program Change) the host plays it as two messages, one with the correct value and another one with 0 value.
Searching in the USB MIDI specification (https://www.usb.org/document-library/usb-midi-devices-10, page 16) results that the USB MIDI packet should have 32 bits and the first byte should contain the cable number and the message type.
So I've changed line 370 from
midiMsg[iii++] = 0x08;to
midiMsg[iii++] = (inType>>4);And everything woks.
Thanks again for the work.