polpo / picogus

Emulation of ISA sound cards on Raspberry Pi Pico (GUS, Adlib, MPU-401, Tandy, CMS)
GNU General Public License v2.0
518 stars 34 forks source link

Any chance to bring MIDI Input support? #31

Closed Deftaudio closed 3 months ago

Deftaudio commented 5 months ago

Hi, great work and an amazing project! Is there any chance to bring MPU-401 MIDI Input support in firmware? Hopefully you have an extra pin for that. I can use an external optocoupler. Just wondering if it's possible at all in the current design. Thank you!

Deftaudio commented 3 months ago

Sorry for pinging here again, any update please?

polpo commented 3 months ago

Unfortunately with the current design it's not possible to support a MIDI input as there are no free pins that can be used for it. There's a UART TX pin exposed on the board, also used for MIDI output but can't be remapped as an RX pin. It may be possible to free up a pin in a future revision and it's something I'll keep in mind.

Deftaudio commented 3 months ago

Thank you Ian @polpo, I understand that you might ran out of available pins. Can you add support for a USB MIDI class compliant device then? This way any external USB MIDI interface will work just fine.

polpo commented 3 months ago

Oh, that's a really cool idea! TinyUSB can support USB MIDI class devices with this driver: https://github.com/rppicomidi/usb_midi_host I'll look and see if such a thing would be possible.

kmeaw commented 1 week ago

Just in case there will be some plans on throwing in some mux to free pins for MIDI input, please consider also having the wavetable header handled separately from the MIDI output - so software could switch between handing over the MIDI data either way (or both, as current PCB does), giving the user choice over the routing.