Tuesday, November 08, 2022

Re: Connect MIDI keyboard to SF2 player in LMMS - OpenBSD 7.2.

On 11/8/22 17:15, Alexandre Ratchov wrote:
> If you've multiple MIDI controllers, you could assign a MIDI channel
> to each (most MIDI controllers have a knob to do so) and then route
> them all to "midithru/0" so lmms or fluidsynth see them as a single
> port. For instance:
>
> midicat -d -q midi/0 -q midithru/0
> midicat -d -q midi/1 -q midithru/0
>
> Then, in lmms (or fluidsynth), configure each track's "Input channel"
> setting to the corresponding input (click on the "keyboard" icon, then
> the "enable midi input" button, then select the channel number). If
> you need a more complex MIDI routing, you could try the audio/midish
> port.
>
> Note that certain programs count channel numbers from 0 other from 1.

Hi again Alexandre,
OK, many thanks for that. I have tried to make this a little simpler by
just using one device, that has both keys and pads. Here is the dmesg
section:

umidi0 at uhub0 port 5 configuration 1 interface 1 "Nektar Impact LX25+"
rev 1.10/0.32 addr 3
umidi0: (genuine USB-MIDI)
umidi0: out=1, in=2
midi0 at umidi0: <USB MIDI I/F>
midi1 at umidi0: <USB MIDI I/F>
ugen2 at uhub0 port 5 configuration 1 "Nektar Impact LX25+" rev
1.10/0.32 addr 3

I ran the following:
$ midicat -d -q midi/0 -q midithru/0
$ midicat -d -q midi/1 -q midithru/0

It appears that it is necessary to use two terminals for this...
As suggested, I configured LMMS' Sf2 Player input channel to "1" and
then enabled the midi input. I did the same with the Kicker plugin input
channel, set it to "2" and enabled the midi input. I then set the action
gear for each plugin to receive MIDI input on each. The Sf2 plugin input
can be seen in the piano roll, where notes and velocity can be adjusted
after the fact. The terminal running the $ midicat -d -q midi/0 -q
midithru/0 command has MIDI output scrolling down the terminal.

While the pads produce the correct (drum) sounds when the Kicker plugin
is open, when closed (and only the Sf2 and Kicker plugins are in the
song editor panel) I only get grand piano sounds. Likewise, there is no
scrolling output in the second terminal with the command $ midicat -d -q
midi/1 -q midithru/0. Nothing appears in the piano roll either, when I
chose "record". Not sure what is going on here...

No comments:

Post a Comment