<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 16, 2014 at 10:48 PM, Clifford Dunn <span dir="ltr"><<a href="mailto:beatleboy07@gmail.com" target="_blank">beatleboy07@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I'm currently building a foot pedal controller. I have an Arduino<br>
Diecimila that is going to transmit the simple on/off as well as<br>
continuous controller info. </blockquote><div>Cool, and nice project.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My thought is to make it a bluetooth<br>

device and have wireless communication with my computer.</blockquote><div>I'd advise against it: I know perhaps the "wireless" thing is nice on stage, but in the end<br></div><div>a cable you can (usually anway!) rely on, while with bluetooth, I wouldn't be too sure.<br>
<br></div><div>I'll suggest two options:<br></div><div>A) Get a Arduino Uno (so you have the flashable USB chip), and make it appear as a class compliant USB MIDI device. ALSA will pick it up, and automatically list it as a MIDI I/O device. Done.<br>
</div><div><br>B) Use a hardware MIDI output from the Arduino: setting the serial baudrate to 31250 (midi baud rate), and writing the bytes you want using Serial.write() does the job. The hardware MIDI output is very simple: <a href="http://arduino.cc/en/uploads/Tutorial/MIDI_bb.png">http://arduino.cc/en/uploads/Tutorial/MIDI_bb.png</a><br>
<br></div><div>Depending on if you interface has hardware MIDI I/O, B might be OK, and saves buying an Arduino Uno. That said, the simplicity of just plug & play USB MIDI anywhere is awesome!<br><br></div><div>HTH, -Harry<br>
<br></div><div>PS: I have python script to read serial data using the "PySerial" module, and turn that into ALSA MIDI somewhere... leftovers from a similar project :) That allows using the Decimilia as a USB MIDI device, so long as the python script is running. Note that its obviously not ideal: with Python being rubbish for speed, and its a very non-portable solution since the Py-ALSA-MIDI / PySerial modules aren't common.<br>
</div></div></div></div>