[alsa-devel] opening rawmidi on user ports

Takashi Sakamoto o-takashi at sakamocchi.jp
Wed Mar 13 06:48:51 CET 2019


Hi,

On Tue, Mar 12, 2019 at 05:19:38PM +0100, AlGrenadine wrote:
> I use btmidi-server from the bluez stack, which creates user ports to send
> and receive midi via bluetooth.
> I can't manager which parameter string i must provide to snd_rawmidi_open
> function, can you help ?
> 
> (of course the user ports don't appear in amidi -l)
> I only have a client and port ids (128:0) when using aconnect -l

As long as reading code of 'btmidi-server'[1], it uses ALSA sequencer
interface. You need to use ALSA sequencer APIs instead of ALSA rawmidi
APIs. Some tools will assist your work; 'aseqdump' and 'aplaymidi' in
'alsa-utils' repository[2].

[1] https://github.com/oxesoft/bluez/blob/midi/tools/btmidi-server.c
[2] https://git.alsa-project.org/?p=alsa-utils.git

Regards

Takashi Sakamoto


More information about the Alsa-devel mailing list