-
-
Notifications
You must be signed in to change notification settings - Fork 7k
USB MIDI for Arduino #2943
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
USB MIDI for Arduino #2943
Conversation
Hi @gurbrinder , Could you recover the correct one (with your modifications, of course) and push force over it? |
Fixed the file. |
Hi, Gary On Tue, Apr 14, 2015 at 12:44 AM, Martino Facchin notifications@github.com
Regards, |
@ArduinoBot build this please |
I finally found some time to test the patch and it works great (setting up my Linux machine to hear something was a PITA instead 😄 ) The example must be moved (for example to Then it would be great to have some smart functions wrappers like |
Completely ported to PluggableUSB in this repo. |
Hi @gurbrinder ! I've been further testing the USB MIDI implementation you made, and have come across an issue that I can't figure out: the whole Arduino sketch will freeze if you try using it after the USB is connected, but before an app opens the MIDI port and starts listening to the MIDI sent from the Arduino. Was hoping you could help me figure it out or at least point me in the right direction. I've narrowed it down to this:
I've attempted to duplicate the "_usbLineInfo.lineState" technique in CDC.cpp, but couldn't get it to work: https://github.com/odbol/Arduino/tree/midi-fixserial (differences from this version: odbol/Arduino@midi...odbol:midi-fixserial) Any advice or help would be much appreciated! If you'd like me to write a test sketch to show the problem, let me know. Thanks so much for your help! Tyler |
I've crafted a very simple test sketch to illustrate the problem: https://github.com/odbol/Arduino-MIDI-Test-Sketch When you run it on a Due, the LED should blink consistently. If MIDI is enabled in your Arduino Core, the LED stops blinking (until you launch a MIDI app that opens the MIDI port of the Arduino—then it works as expected). |
Just opened this as an issue on the new repo where this code is housed, since that's where we'd apply the fix: arduino-libraries/MIDIUSB#4 |
I think I may have fixed this now: arduino-libraries/MIDIUSB#5 |
Tyler, I am sorry I have not been responsive. I am currently in China for work. Gary
|
Added USB MIDI device capability top Arduino Due