Most recent activity
-
-
Hi,
I'm trying to work out if it's possible to use the new Pico USB HID support to get the Pico to work as a USB-MIDI controller.
I want to be able to plug a Pico into the USB port of a computer and have the Pico send MIDI messages without any USB to MIDI adaptors in between.
The Teensy 3 USB library seems to support this and HIDUINO does similar for the Arduino Uno.
I've dug into the code to try and figure out how it's done. The Teensy 3 source has the Keyboard, Mouse, Joystick and MIDI descriptors in the same file, usb_desc.c.
Mouse descriptors:
https://github.com/PaulStoffregen/cores/blob/master/teensy3/usb_desc.c#L159-L198MIDI descriptors:
https://github.com/PaulStoffregen/cores/blob/master/teensy3/usb_desc.c#L482-L563Is it possible to use the MIDI descriptors in the same way as the Espruino Keyboard, Mouse and Tablet examples? Or is the USB-MIDI interface different to the HID interface?
I'm going to have a go at this but I thought it would be worth asking first as my USB knowledge is non-existent.
Thanks for any help!
Andrew
The reason I prefer MIDI over OSC support is because of the recent WebMIDI standard (some demo). I'm imagining some cool instruments/interfaces created with Pico that can be plugged into the USB port and then interact via a web page.
I'm keen to see if this is possible so I'll try to find time to follow Gordon's suggestions for getting a custom firmware built. Not that I know what I'm doing.
@loopMasta, let me know if you make any progress or if you fancy collaborating on it.