arduino-libraries / MIDIUSB

A MIDI library over USB, based on PluggableUSB
GNU Lesser General Public License v2.1
498 stars 89 forks source link

Midi on serial port #52

Open giovannibotta opened 5 years ago

giovannibotta commented 5 years ago

Hi I’m trying to understand whether it’s possible to output midi signals directly on a serial port connected to a standard din connector, in addition to USB. The application for this is to control devices that only have din support and/or without a host computer. Looking at the code, it doesn’t seem supported but I might be wrong. Also this might not be the right library for this and a separate one might exist. I tried to do some research but without success. Any ideas?

fab672000 commented 5 years ago

Yes it is look at this example (you'll find a lot of hardware resources with google to implement a midi in/out din connection to the arduino serial port(s)). I developed this midi interface so that my son can learn piano with his ipad while using an old midi din interface on a casio piano.

giovannibotta commented 5 years ago

Is this a fork of MIDIUSB?

On Tue, Jan 29, 2019 at 09:42 fab672000 notifications@github.com wrote:

Yes it is look at this https://github.com/fab672000/MIDIUSB_1x1.git example (you'll find a lot of hardware resources with google to implement a midi in/out din connection to the arduino serial port(s)). I developed this midi interface so that my son can learn piano with his ipad while using an old midi din interface on a casio piano.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arduino-libraries/MIDIUSB/issues/52#issuecomment-458564542, or mute the thread https://github.com/notifications/unsubscribe-auth/ACAGMJf5KOouv8xUR2dinVC_G-r32l5Zks5vIF27gaJpZM4aYCZk .

-- Giovanni

fab672000 commented 5 years ago

No it is using it instead and alkso uses another great midi lib from another contributor here.

giovannibotta commented 5 years ago

Sounds like it might make sense to add it to the Arduino repositories? Anyway I’ll give it a try, thank you!

giovannibotta commented 5 years ago

It seems to me that serial+USB functionality will soon be supported by arduino_midi_library, e.g., here.

fab672000 commented 5 years ago

Yes, my project also uses @franky47 MIDI library, I think he implemented recently a bridging functionality similar to mine there, could not check that out yet.

My project is more specific though and designed for use as a self-powered usb device on tablets like iPads.

I'm sure you could now use his lib to do the same thing.