[LAU] alsa sequencer port numbering

Bob van der Poel bob at mellowood.ca
Sat Nov 20 16:26:11 UTC 2010


Thanks. Makes perfect sense!

On Sat, Nov 20, 2010 at 5:27 AM, Gwenhwyfaer <gwenhwyfaer at gmail.com> wrote:
> Lacking either connected MIDI hardware or a MIDI file to play, I was
> limited in how much testing I could do; however, the aplaymidi man
> page says it wants -p CLIENT:PORT but will assume port 0 if just given
> a client. So it appears that you would be able to use:
>
> aplaymidi -p 20
> aplaymidi -p 20:0
> aplaymidi -p 'Ensoniq AudioPCI'
> aplaymidi -p 'Ensoniq AudioPCI:ES1371'
> aplaymidi -p 'Ensoniq AudioPCI:0'
> aplaymidi -p 20:ES1371
>
> but not
>
> aplaymidi -p 0
> aplaymidi -p ES1371
>
> Does that clarify matters?
>
> On 19/11/2010, Bob van der Poel <bob at mellowood.ca> wrote:
>>> Oops, sorry I think you need to address the client name, not the port
>>> name,
>>> so in your case something like aplaymidi -p "Ensoniq AudioPCI":0 But then
>>> aplaymidi needs to support that and according to its man page it does. So
>>> you can even use just aplaymidi -p Ensoniq
>>
>> Okay ... learn something new every day! I had no idea one could use a
>> device name.
>>
>> But, it doesn't seem to work here :)
>>
>> First, the version of aplaymidi I have.
>>
>> bob$ aplaymidi -V
>> aplaymidi version 1.0.23
>>
>> And, I checked the man page and it does say one can use the device name.
>>
>> And the ports are:
>>
>> bob$ aplaymidi -l
>>  Port    Client name                      Port name
>>  14:0    Midi Through                     Midi Through Port-0
>>  20:0    Ensoniq AudioPCI                 ES1371
>>
>> But, it doesn't work as advertised:
>>
>> bob$ aplaymidi -p ES1271 test.mid
>> Invalid port ES1271 - No such file or directory
>>
>> or
>>
>> bob$ aplaymidi -pEnsoniq test.mid
>> Invalid port Ensoniq - No such file or directory
>>
>> However, it does appear that a full name does work:
>>
>> bob$ aplaymidi -p "Ensoniq AudioPCI" test.mid
>>
>> And export ALSA_OUTPUT_PORTS="Ensoniq AudioPCI" also seems to work.
>>
>> is something broken here since I can't use "Ensoniq" or "ES1271" ?
>>
>>
>>
>>
>> --
>> **** Listen to my CD at http://www.mellowood.ca/music/cedars ****
>> Bob van der Poel ** Wynndel, British Columbia, CANADA **
>> EMAIL: bob at mellowood.ca
>> WWW:   http://www.mellowood.ca
>> _______________________________________________
>> Linux-audio-user mailing list
>> Linux-audio-user at lists.linuxaudio.org
>> http://lists.linuxaudio.org/listinfo/linux-audio-user
>>
>



-- 
**** Listen to my CD at http://www.mellowood.ca/music/cedars ****
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bob at mellowood.ca
WWW:   http://www.mellowood.ca


More information about the Linux-audio-user mailing list