Hi, just got a new 4-port usb hub from D-link. This one seems to work ok,
ls /dev/midi*
/dev/midi
/dev/midi1
find /dev/snd
/dev/snd
/dev/snd/by-path
/dev/snd/by-path/platform-musb-hdrc.1.auto-usb-0:1.4:1.0
/dev/snd/by-path/platform-musb-hdrc.1.auto-usb-0:1.2:1.0
/dev/snd/by-id
/dev/snd/by-id/usb-KORG_INC._nanoKONTROL2-00
/dev/snd/by-id/usb-1a86_USB2.0-MIDI-00
/dev/snd/controlC0
/dev/snd/midiC0D0
/dev/snd/controlC1
/dev/snd/midiC1D0
/dev/snd/seq
/dev/snd/timer
amidi -l
Dir Device Name
IO hw:0,0,0 nanoKONTROL2 MIDI 1
IO hw:1,0,0 USB2.0-MIDI MIDI 1
O hw:1,0,1 USB2.0-MIDI MIDI 2
So, the device numbers changed, I updated default_libpd_render.cpp and it seems to work fine now.
However this is the output of your last commands...
amidi -d -p hw:0,0,0
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open)
open /dev/snd/midiC0D0 failed: Device or resource busy
cannot open port "hw:0,0,0": Device or resource busy
root@bela ~/Bela/IDE# amidi -d -p hw:1,0,0
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open)
open /dev/snd/midiC1D0 failed: Device or resource busy
cannot open port "hw:1,0,0": Device or resource busy
root@bela ~/Bela/IDE# amidi -d -p hw:1,0,1
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open)
open /dev/snd/midiC1D0 failed: No such device
cannot open port "hw:1,0,1": No such device