Re: How to use both outputs on 1x2 USB MIDI adapter?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 2, 2009 at 3:16 AM, Clemens Ladisch <cladisch@xxxxxxxxxxxxxx> wrote:
Evan DeMond wrote:
> Just acquired a Edirol UM-2EX, a little USB MIDI adapter with 1 input and 2
> outputs, and I only seem to be able to use one of the outputs. Plugging it
> into my Eee PC (Arch Linux with ALSA 1.0.20) creates /dev/midi1, to which I
> can read and write with no trouble.
> But the second MIDI out is silent - does anyone know how I could open
> it, perhaps through the ALSA library, or somehow getting a /dev/midi2,
> or otherwise?

In the ALSA raw MIDI interface or sequencer interface, both ports show
up (see the output of "amidi -l" or "aplaymidi -l").  All ALSA
applications will see the second port.

Thanks - will delve into the rawmidi API when I get the chance.
 

(You could access the second port through /dev/midi1 by opening that
device a second time while it's still open.)
 
Just tried this, and while it will let me open /dev/midi1 twice, any notes sent using either of the handles sends the data on the first output only. Going back to /proc/asound/card1/midi0 shows data transmitted on Output 0, but still no bytes on Output 1. 

(Did this with a simple Lua script that opened "/dev/midi1" twice in "wb" mode, wrote a Note On message to each, and flushed/closed them.)

Could this just be the behavior of the UM-2EX, or of ALSA's OSS emulation, or might I be omitting something? Happy to provide any details that would shed some light.

Thanks,

Evan
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux