-
Notifications
You must be signed in to change notification settings - Fork 11
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
Example MIDI DIN2USB does not work with Leonardo #22
Comments
Did you look at this? (I'm not going to download the sketch zip (not a best practice on GitHub), please paste your code here using the MarkDown code syntax). |
I was looking at this before... the solution is not clear yet... have to read further :)
If I get this all to work, I can test it on the RP2040 (which I got last week). If you're interested, I'll share my experiences ;) |
code is now pasted on the prev message |
Does it work without the modified |
Well SysEx would be the next step... but first notes + controllers should work |
Test success... I set the message.length to the real message length now. Notes are played now |
Sending original SysEx message from USB to DIN is not received on device. But there the length field is correct. type=F0 |
That could be a problem...
I'll check if the sysex array contains F0 + F7 |
It does. Will test without |
Ok, my conclusion for SysEx (via setHandleMessage(...)) is the following:
Then it works perfect. |
Oh no. Which is fine until being received from PC via USB. Suddenly we have an unexpected 0 after F0 in the message |
Tested with smaller sysex (GlobalParameterDump) |
Seems it doesn't happen when sending to serial MIDI, otherwise the Synth wouldn't reply |
Any idea? |
Have you tried sending SysEx through USB, hardcoded, without the Serial USB in the code. So send the SysEx every second like in the example code. (and put Most of the write code is here: Arduino-USBMIDI/src/USB-MIDI.h Lines 103 to 117 in ab62611
Add some |
Yes, this works. It looks like I did some mistake on copying the bytes. |
A bit, the begin- and end sysEx brings back the programming memories.
So, all good? |
Without modifying the incoming message it will not work. That is what I experienced here |
Shortmessages: |
SysEx Messages:
|
I did test example MIDI_DIN2USB from USB-MIDI library v1.12 with Arduino Pro Micro (Leonardo)
Sending control change B0,07,7f from PC to Arduino USB MIDI.
logging of the (modified) sketch printed out the correct bytes were received from Arduino USB,
but they were not forwarded to my MIDI device.
For testing, i was just connecting MIDI DIN out -> MIDI DIN in on my Arduino board.
(The way then would be PC -> Arduino USB -> Arduino DIN out -> Arduino DIN in -> Arduino USB -> PC)
I sended again from PC -> USB
3 times nothing was received from serial MIDI.
When sending the same control change to USB the 4th time, it got fancy:
Suddenly data was received from Serial MIDI but not the original data, (see logging below)
It was forwarded to USB and on the PC but it received b0,00,00 like hell
It did not stop to send it again and again, I had to unplug the usb cable to stop it.
All best
Uli Schmidt
here the sketch and logging:
The text was updated successfully, but these errors were encountered: