MIDI to USB interface not working with LMMS

Support & discussion regarding DAWs and MIDI sequencers.

Moderators: MattKingUSA, khz

Post Reply
deperito
Established Member
Posts: 14
Joined: Thu Sep 03, 2020 4:23 pm
Has thanked: 3 times
Been thanked: 2 times

MIDI to USB interface not working with LMMS

Post by deperito »

Hi everybody,

I don't know if this is the right section, but I'm having some troubles trying to use my MIDI to USB interface with LMMS.

some time ago I buyed this (https://www.amazon.it/gp/product/B00CO5 ... UTF8&psc=1) iConnectivity mio MIDI to USB interface (sorry, to be sure about the model I just shared the amazon link) in order to connect my midi keyboard to my PC running AVLinux and LMMS. At the time I buyed the interface all went well and I managed to control LMMS' instruments with my keyboard, but - if I remember well - I was running an older version either of LMMS and AVLinux.
Now I tried to do the same thing, but I can't manage to make it work...
My problem is I can't manage to connect my MIDI to USB interface to LMMS' MIDI in port. In fact (as you can see in this screenshot: https://ibb.co/dbDCLg2), even if I can see my MIDI interface and LMMS in qjackctl connections graph, LMMS' midi input port appears to be disabled (and I think the red color tells the port is disabled) and I can't manage to connect my MIDI interface to it.

Someone could please give me some help on this?

O.S. : AVLinux (cat /etc/os-release says: "Debian GNU/Linux 10 (buster)"
LMMS ver: 1.2.2 (Linux/x86_64 Qt 5.9.7, GCC 5.4.0 20160609)
Qjackctl ver: 0.6.3
tavasti
Established Member
Posts: 2059
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 374 times
Been thanked: 209 times
Contact:

Re: MIDI to USB interface not working with LMMS

Post by tavasti »

deperito wrote: Thu Feb 10, 2022 8:17 pm ...
in order to connect my midi keyboard to my PC running AVLinux and LMMS. At the time I buyed the interface all went well and I managed to control LMMS' instruments with my keyboard, but - if I remember well - I was running an older version either of LMMS and AVLinux.
Now I tried to do the same thing, but I can't manage to make it work...
My problem is I can't manage to connect my MIDI to USB interface to LMMS' MIDI in port. In fact (as you can see in this screenshot: https://ibb.co/dbDCLg2), even if I can see my MIDI interface and LMMS in qjackctl connections graph, LMMS' midi input port appears to be disabled (and I think the red color tells the port is disabled) and I can't manage to connect my MIDI interface to it.
With LMMS, midi connections are controlled from LMMS directly, see for example https://youtu.be/NpeP2th08ak?t=189

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: MIDI to USB interface not working with LMMS

Post by asbak »

Red means jack midi.
Purple means Alsa midi.
You also have a2jmidid running.
What MIDI driver is selected in qjackctl? Raw? Seq? None? Try set this to "none" if it isn't already, then stop and quit qjackctl.
Quit a2jmidid.
Quit lmms.

Do a process listing and see if jack or a2jmidid is still running. If it is then kill it.
Then start qjackctl and a2jmidid again.
Start lmms.
You should now only see the a2jmidid jack midi devices in qjackctl graph.

Check lmms settings (I don't have it) whether it is possible to select between ALSA Midi and Jack Midi drivers.
From your screenshot lmms already appears to be set to jack midi.

It should be possible to connect the mio capture port to lmms midi by using the qjackctl graph. If it still doesn't work there is a strange problem. :)
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
deperito
Established Member
Posts: 14
Joined: Thu Sep 03, 2020 4:23 pm
Has thanked: 3 times
Been thanked: 2 times

Re: MIDI to USB interface not working with LMMS

Post by deperito »

Aaand I did it!

As @tavasti said:
With LMMS, midi connections are controlled from LMMS directly
and not through JACK. (Really don't know why)

I leave my solution here hoping to help other users:
  • Connect the MIDI to USB interface (... You don't say? :roll: )
  • Configure LMMS MIDI section to use ALSA-sequencer as MIDI Interface
  • Click on the instrument/plugin you want to play using MIDI
  • Navigate to the MIDI Setting section
  • Enable MIDI input
  • Click on the little keyboard button to select the MIDI interface you're going to use to play the instrument/plugin
  • Play with the channel box to find the right MIDI channel (usually is number 1)
  • You should be able to play the instrument/plugin with your MIDI keyboard
Of course, you can still leave LMMS configured to use JACK for audio output leaving JACK up on your Audio Interface and use it as your "audio manager" (f.e. for using guitar effects or Ardour or whatever u like)

Bye and thank you very much!
Post Reply