NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Using a USB MIDI controller as input for LMMS



Hello all,

today a hobby question :-) As the subject already reveals, I want to make music with NetBSD.

LMMS is quite comfortable for me and now only the USB MIDI controller would have to work. It also almost seems like I'm only missing one teeny tiny detail.

That is the kernel output I get when I plug in the controller:

```
[ 1131610,270409] uhidev2 at uhub1 port 1 configuration 1 interface 0
[ 1131610,270409] uhidev2: AKAI (0x9e8) MPK Mini Mk II (0x26), rev 1.10/0.00, addr 19, iclass 3/0
[ 1131610,270409] uhid4 at uhidev2: input=32, output=32, feature=0
[ 1131610,270409] uaudio0 at uhub1 port 1 configuration 1 interface 1
[ 1131610,270409] uaudio0: AKAI (0x9e8) MPK Mini Mk II (0x26), rev 1.10/0.00, addr 19 [ 1131610,270409] uaudio0: autoconfiguration error: audio descriptors make no sense, error=4
[ 1131610,270409] umidi0 at uhub1 port 1 configuration 1 interface 2
[ 1131610,270409] umidi0: AKAI (0x9e8) MPK Mini Mk II (0x26), rev 1.10/0.00, addr 19
[ 1131610,270409] umidi0: (genuine USB-MIDI)
[ 1131610,270409] umidi0: out=1, in=1
[ 1131610,270409] midi1 at umidi0: <0 >0 on umidi0
```

Am I correct in assuming that I can infer that /dev/rmidi0 is the associated device? If so, how can I tell exactly? The access rights of all rmidi devices seem at least ok:

```
mpeterma@x230Mk10 ~> ls -la /dev/rmidi*
crw-rw-rw-  1 root  wheel  58, 0 Feb 17 11:35 /dev/rmidi0
crw-rw-rw-  1 root  wheel  58, 1 Feb 17 11:35 /dev/rmidi1
crw-rw-rw-  1 root  wheel  58, 2 Feb 17 11:35 /dev/rmidi2
crw-rw-rw-  1 root  wheel  58, 3 Feb 17 11:35 /dev/rmidi3
crw-rw-rw-  1 root  wheel  58, 4 Feb 17 11:35 /dev/rmidi4
crw-rw-rw-  1 root  wheel  58, 5 Feb 17 11:35 /dev/rmidi5
crw-rw-rw-  1 root  wheel  58, 6 Feb 17 11:35 /dev/rmidi6
crw-rw-rw-  1 root  wheel  58, 7 Feb 17 11:35 /dev/rmidi7
```

Same for the higher level devices:

```
mpeterma@x230Mk10 ~> ls -la /dev/music
crw-rw-rw-  1 root  wheel  59, 0 Feb 17 11:35 /dev/music
mpeterma@x230Mk10 ~> ls -la /dev/sequencer
crw-rw-rw-  1 root  wheel  59, 128 Feb 17 11:35 /dev/sequencer
```

A kind of "recording" is also possible with midirecord (playing a C chord):

```
mpeterma@x230Mk10 ~ [SIGPIPE|SIGINT]> midirecord -|hexdump
0000000 544d 6468 0000 0600 0100 0100 1800 544d
0000010 6b72 0000 1d00 ff00 0351 a107 0020 4090
0000020 906e 5843 3c90 0458 4080 0100 3c80 8000
```

Now to LMMS: here the MIDI device /dev/rmidi0 is set as default. I also read somewhere in the CVS logs that this was patched not too long ago to use the correct device by default on NetBSD. Unfortunately, I am not able to close the loophole.

Regardless of whether the controller is connected or not, LMMS offers me "Input" and "Output" under "MIDI" when I click on the small cogwheel of an instrument track. However, no controller signals arrive.

Are there any LMMS users here who may be able to help me?

Kind regards
Matthias

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Home | Main Index | Thread Index | Old Index