Skip to contentSkip to conversation

opening rawmidi on user ports

DISCUSSION AlGrenadine 3 participants 5 messages Mar 12, 2019 – Mar 14, 2019 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,
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

Thanks

#1 lore raw

Hi,

Quoted 7 lines · AlGrenadine

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

#2 lore raw
In reply to AlGrenadine
Quoted 2 lines · AlGrenadine

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 ?

Load the snd-virmidi module to get a bridge between raw MIDI ports and sequencer ports.

Regards,
Clemens

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 1 line · AlGrenadine

it seems ALSA seq looses sysex messages. Is there a buffer size which can be set ?

Messages from where to where? Can you check with aseqdump or "amidi --dump"?

Messages that are too large for the internal buffer are split into multiple parts.

Regards,
Clemens

A message that is not in the archive (sent off-list or not yet received): [email protected]