Hi everybody!
I'm trying to learn how to build a software that uses a midi port. I'm a developper so, coding, compiling and testing are not issues. My kernel is Debian 4.19.98 (according to uname -a). I already searched the web and found some "solutions" but none of them solved the problems I have:
/dev/sequencer doesn't exist. I have a /dev/snd/seq, are they the same things ? Who is responsible for creating this device ? Alsa is installed.
I created a link named /dev/sequencer that points to /dev/snd/seq but that doesn't help. I'm now able to open /dev/sequencer but when I try to query the number of midi devices, the call fails:
status = ioctl(seqfd, SNDCTL_SEQ_NRMIDIS, &midiInCount);
ends up with errno=25 (inappropriate ioctl for device). whatever the ioctl code, I always get this error.
A cable usb/midi is used and detected : lsusb shows "Bus 002 Device 003: ID fc08:0101 Conrad Electronic SE MIDI Cable UA0037".
command "aconnect -i" gives (these lines disappear if I unplugged the cable, so this really is my interface):
client 20: 'USB MIDI Interface' [type=kernel,card=1]
0 'USB MIDI Interface MIDI 1'
lsmod shows that the following modules are installed: usb_rawmidi, snd_usb_audio, snd_usbmidi_lib, snd_seq_midi, snd_seq, snd_seq_device.
snd-seq-oss is missing but I don't know how to install it: alsa and alsa-oss are already installed.
Thanks for any tips!
I'm trying to learn how to build a software that uses a midi port. I'm a developper so, coding, compiling and testing are not issues. My kernel is Debian 4.19.98 (according to uname -a). I already searched the web and found some "solutions" but none of them solved the problems I have:
/dev/sequencer doesn't exist. I have a /dev/snd/seq, are they the same things ? Who is responsible for creating this device ? Alsa is installed.
I created a link named /dev/sequencer that points to /dev/snd/seq but that doesn't help. I'm now able to open /dev/sequencer but when I try to query the number of midi devices, the call fails:
status = ioctl(seqfd, SNDCTL_SEQ_NRMIDIS, &midiInCount);
ends up with errno=25 (inappropriate ioctl for device). whatever the ioctl code, I always get this error.
A cable usb/midi is used and detected : lsusb shows "Bus 002 Device 003: ID fc08:0101 Conrad Electronic SE MIDI Cable UA0037".
command "aconnect -i" gives (these lines disappear if I unplugged the cable, so this really is my interface):
client 20: 'USB MIDI Interface' [type=kernel,card=1]
0 'USB MIDI Interface MIDI 1'
lsmod shows that the following modules are installed: usb_rawmidi, snd_usb_audio, snd_usbmidi_lib, snd_seq_midi, snd_seq, snd_seq_device.
snd-seq-oss is missing but I don't know how to install it: alsa and alsa-oss are already installed.
Thanks for any tips!