Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIDI_DIN2USB example does not work (incorrect second and third byte) #26

Open
phjanderson opened this issue Apr 28, 2024 · 0 comments
Open

Comments

@phjanderson
Copy link

The MIDI_DIN2USB doesn't seem to work properly.

Versions used:

  • USB-MIDI 1.1.2
  • MIDI Library 5.0.2
  • Arduino IDE 2.3.2
  • Arduino Leonardo

Setup (tested working using another library):

  • MIDI keyboard connected to the DIN input
  • PC connected through USB running a MIDI monitor

If I press a key on the MIDI keyboard, I see a message coming in in the MIDI monitor on the PC. Only the first byte is correct however:

90 00 00
80 00 00

Adding some Serial.println() statements in the onSerialMessage() method confirms that message contains the correct channel, data1 and data2. The length attribute is 0 however. Forcing it to 3 before sending it out to MIDICoreUSB.send() results in correct MIDI note on/off messages. This won't work for messages with different lengths of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant