Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending MIDI up the USB using Arduino

I'm interested in making an Arduino based MIDI controller to talk to my computer. Looking at other examples of Arduino MIDI (for example, MIDI Output using an Arduino), they all seem to wire up a dedicated 5 pin DIN. Which makes sense as this is the original cable to connect keyboards, expanders and sequencers together.

However, I want to send MIDI to my PC. A 5-pin DIN is just going to have to be plugged into a conversion box which connects to my PC via USB. And I already have a USB cable to connect my Arduino to my PC. So why can't I just use this?

I'm assuming what would stop me is that these conversion boxes all come with drivers which know how to handle the signal coming in over USB. Whereas, say, a virtual synthesizer on my computer wouldn't expect or know how to handle raw bytes coming in via the serial port. So is there a standard or free equivalent to these drivers that I could use for my own project? Or, if not, what would it take to write one? Where could I find out more about this?

like image 235
interstar Avatar asked Oct 20 '09 01:10

interstar


People also ask

Can you send MIDI over USB?

MIDI can now be sent over 5 Pin DIN, Serial Ports, USB, Firewire, Ethernet, Bluetooth and more. But currently the most prevalent way to connect to computers, tablets and smartphones is USB.

Can Arduino send MIDI?

Send MIDI note messages serially. This tutorial shows how to send MIDI notes from an Arduino board to a MIDI instrument connected through the standard 5 poles DIN cable. MIDI, the Musical Instrument Digital Interface, is a useful protocol for controlling synthesizers, sequencers, and other musical devices.

How do you send a MIDI signal?

"To use it, simply type "sendmidi" or "sendmidi.exe" on the command line and follow it with a series of commands that you want to execute. These commands have purposefully been chosen to be concise and easy to remember, so that it's extremely fast and intuitive to quickly shoot out a few MIDI messages."


1 Answers

I found it was easier to just embed a cheap ($6) MIDI-USB interface right into my Arduino projects. Quick and Dirty Arduino MIDI Over USB explains how.

There are also some pictures of an old calculator I turned into an Arduino USB-MIDI controller in Calculator MIDI USB Controller.

I hope that helps.

like image 82
Nate Avatar answered Oct 22 '22 07:10

Nate