Hi,
I' m wondering if there's a way to connect my 5-pin midi keyboard to my Arduino, and have my Arduino relay those signals to Garageband. I've seen Arduinos as a midi device, but I need it as a converter. Any sketches and/otr diagrams would be very helpful.
-Sam
I'm sure it can be done if all the Arduino is doing is relaying the MIDI between the keyboard and the USB port. It will require two serial ports. On a Douemilanove, for examle, this would mean using the standard port for communication with the USB port and a software serial port to talk to the MIDI end. Some more recent Arduinos have two or more hardware serial ports.
The only complication will be interfacing the MIDI plug to the Arduino. Typically a pair of optoisolators are used to isolate the Arduino side from the MIDI current loop. Wikipedia describes what's required.
There may also be people here who have already done the interfacing or who have a better idea of what's required.
Pete
You need a MIDI interface on the arduino to receive the MIDI, there are lots of poor designs but this is a proper one:-
http://www.thebox.myzen.co.uk/Hardware/MIDI_Shield.html
Note you only need half that circuit, the bit that receives.
Then at the Mac end you need something to translate the serial data into a MIDI stream, something like this will probably work:-
http://www.spikenzielabs.com/SpikenzieLabs/Serial_MIDI.html
After that Garage band should pick it up.
Although it is easier and cheaper just to get a MIDI interface, search on eBay they are less than a quarter of the price of an Arduino.