You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have enabled MIDI in my firmware build, and I can successfully send MIDI from my keyboard over USB to my computer.
I also expect to be able to send MIDI from my computer to the keyboard.
The keyboard shows up as a MIDI output device on my computer
I have registered MIDI callbacks for receiving data.
MIDI_ENABLE = yes in my rules.mk
Observed:
The callback function usb_get_midi never receives MIDI data from the recv_midi_packet function.
Keyboard Used
wilba_tech/rama_works_m50_a
Link to product page (if applicable)
No response
Operating System
macOS 12.5.1
qmk doctor Output
No response
Is AutoHotKey / Karabiner installed
AutoHotKey (Windows)
Karabiner (macOS)
Other keyboard-related software installed
No response
Additional Context
I was able to resolve the bug for myself by changing the following line in tmk_core/protocol/lufa/lufa.c from:
It seems to me that the incorrect ENDPOINT direction was selected in this configuration in the upstream codebase. Changing it makes MIDI input work and I can now process MIDI on the keyboard. But I am not sure if the original configuration was intentional or a bug, so I wanted to share it in case someone else has the same problem as me!
The text was updated successfully, but these errors were encountered:
I am currently able to send MIDI information from the keyboard to the computer, but now I want to send data from the computer to the keyboard to control RGB lights. The documentation for MIDI reception in QMK is insufficient, and I would like to know how to implement the code for receiving and processing MIDI data.
I am currently able to send MIDI information from the keyboard to the computer, but now I want to send data from the computer to the keyboard to control RGB lights.
Describe the Bug
I have enabled MIDI in my firmware build, and I can successfully send MIDI from my keyboard over USB to my computer.
I also expect to be able to send MIDI from my computer to the keyboard.
Observed:
The callback function
usb_get_midi
never receives MIDI data from therecv_midi_packet
function.Keyboard Used
wilba_tech/rama_works_m50_a
Link to product page (if applicable)
No response
Operating System
macOS 12.5.1
qmk doctor Output
No response
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
I was able to resolve the bug for myself by changing the following line in tmk_core/protocol/lufa/lufa.c from:
ConfigSuccess &= Endpoint_ConfigureEndpoint((MIDI_STREAM_OUT_EPNUM | ENDPOINT_DIR_IN), EP_TYPE_BULK, MIDI_STREAM_EPSIZE, 1);
to:
ConfigSuccess &= Endpoint_ConfigureEndpoint((MIDI_STREAM_OUT_EPNUM | ENDPOINT_DIR_OUT), EP_TYPE_BULK, MIDI_STREAM_EPSIZE, 1);
It seems to me that the incorrect ENDPOINT direction was selected in this configuration in the upstream codebase. Changing it makes MIDI input work and I can now process MIDI on the keyboard. But I am not sure if the original configuration was intentional or a bug, so I wanted to share it in case someone else has the same problem as me!
The text was updated successfully, but these errors were encountered: