Re: [LAU] Audio and Bluetooth

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Clifford Dunn <beatleboy07@...>
Cc: Linux Audio User <linux-audio-user@...>
Date: Monday, February 17, 2014 - 12:22 am

--001a1134342c665cb204f28f2795
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Feb 16, 2014 at 10:48 PM, Clifford Dunn wrote:

> I'm currently building a foot pedal controller. I have an Arduino

Cool, and nice project.

> My thought is to make it a bluetooth

I'd advise against it: I know perhaps the "wireless" thing is nice on
stage, but in the end
a cable you can (usually anway!) rely on, while with bluetooth, I wouldn't
be too sure.

I'll suggest two options:
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.

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:
http://arduino.cc/en/uploads/Tutorial/MIDI_bb.png

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!

HTH, -Harry

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.

--001a1134342c665cb204f28f2795
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On S=
un, Feb 16, 2014 at 10:48 PM, Clifford Dunn <beatleboy07@gmail.com> wrote:

I'm currently building a foot pedal controller. I have an Arduino
Diecimila that is going to transmit the simple on/off as well as
continuous controller info. Cool, and nice project.=A0My thou=
ght is to make it a bluetooth

device and have wireless communication with my computer.I=
'd advise against it: I know perhaps the "wireless" thing is =
nice on stage, but in the enda cable you can (usually anway!=
) rely on, while with bluetooth, I wouldn't be too sure.
I'll suggest two options:A) Get a Arduino=
Uno (so you have the flashable USB chip), and make it appear as a class co=
mpliant USB MIDI device. ALSA will pick it up, and automatically list it as=
a MIDI I/O device. Done.
B) Use a hardware MIDI output from the Arduino: setting the =
serial baudrate to 31250 (midi baud rate), and writing the bytes you want u=
sing Serial.write() does the job. The hardware MIDI output is very simple: =
http://arduin=
o.cc/en/uploads/Tutorial/MIDI_bb.png

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!HTH, -Harry=

PS: I have python script to read serial data using the &quot=
;PySerial" module, and turn that into ALSA MIDI somewhere... leftovers=
from a similar project :) That allows using the Decimilia as a USB MIDI de=
vice, 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 sol=
ution since the Py-ALSA-MIDI / PySerial modules aren't common.

--001a1134342c665cb204f28f2795--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Audio and Bluetooth, Clifford Dunn, (Sun Feb 16, 10:49 pm)
[LAU] Arduino MIDI controllers, Ben Bell, (Tue Feb 18, 3:43 pm)
Re: [LAU] Arduino MIDI controllers, Tracey Hytry, (Wed Feb 19, 9:59 am)
Re: [LAU] Audio and Bluetooth, Patrick Shirkey, (Mon Feb 17, 1:20 am)
Re: [LAU] Audio and Bluetooth, Harry van Haaren, (Mon Feb 17, 12:22 am)
Re: [LAU] Audio and Bluetooth, Martin Homuth-Rosemann, (Mon Feb 17, 9:34 am)
Re: [LAU] Audio and Bluetooth, Clifford Dunn, (Tue Feb 18, 7:41 am)
Re: [LAU] Audio and Bluetooth, Martin Peach, (Tue Feb 18, 1:34 pm)