Discussion:
[Alsa-user] Using a USB serial device as a MIDI source
Bill Purvis
2017-05-07 20:55:38 UTC
Permalink
I'm currently working on an Arduino-based project which generates MIDI
output.
Under Linux it appears as a /dev/ttyUSB?. How can I persuade ALSA to
treat it as a MIDI
source (and possibly destination).

Bill
--
+----------------------------------------+
| Bill Purvis |
| email: ***@billp.org |
+----------------------------------------+
Clemens Ladisch
2017-05-08 06:39:48 UTC
Permalink
I'm currently working on an Arduino-based project which generates MIDI output.
Under Linux it appears as a /dev/ttyUSB?. How can I persuade ALSA to treat it as a MIDI
source (and possibly destination).
Your hardware should correctly implement the USB MIDI protocol in the
first place.

Anyway, you could try a tool like ttyMIDI.


Regards,
Clemens
Thomas Brand
2017-05-08 20:16:04 UTC
Permalink
Post by Clemens Ladisch
Post by Bill Purvis
I'm currently working on an Arduino-based project which generates MIDI
output. Under Linux it appears as a /dev/ttyUSB?. How can I persuade
ALSA to treat it as a MIDI
source (and possibly destination).
Your hardware should correctly implement the USB MIDI protocol in the
first place.
Anyway, you could try a tool like ttyMIDI.
Hi Bill,

i've tried this for a simple Arduino based MIDI pedal (ttyMIDI wasn't
available at the time). If you're running JACK this could be an
alternative:

https://raw.githubusercontent.com/7890/jack_tools/master/example-clients/tty.c

using this library for Arduino:
https://github.com/FortySevenEffects/arduino_midi_library/

I don't know how tty.c differs from ttyMIDI, you have to try what fits
best your case.

Greetings
Thomas

Loading...