(SOLVED) Qsampler catch 22

Still new to all of this? Feel free to post in any of the subforums on this site, but in this subforum newbie questions are especially encouraged!

Moderators: MattKingUSA, khz

Post Reply
amc252
Established Member
Posts: 127
Joined: Fri May 05, 2023 12:24 am
Has thanked: 86 times
Been thanked: 18 times

(SOLVED) Qsampler catch 22

Post by amc252 »

Hi everybody,

I've been tinkering with Qsampler and Qjackctl and ran into a spot of problem.

As you can see here:
https://drive.google.com/file/d/1QHS_lj ... sp=sharing
my midi keyboard appears puple (alsa) in qjackctl configuration panel.
Now, if in Qsampler configuration I set both the midi input driver and the output driver to jack (as in the previous image), Linuxsampler midi input appears in red (jack) and therefore I cannot connect my keyboard to it.

If I set Qsampler drivers to midi input driver=alsa and output driver=jack as in here:
https://drive.google.com/file/d/1B9jZT1 ... sp=sharing
Both my keyboard and Linuxsampler midi input are purple (alsa) and I can connect them, but Linuxsampler midi input and Linuxsampler output (red-jack) are separated, and I can't make them work together.

My question is:
Can I either change my keyboard driver to jack or make somehow Qsampler connect alsa input to jack output?

NOTE: If I set both input and output Qsampler drivers to alsa, I cannot use jack, but I can connect them with aconnect. Hence, my question is not about getting my keyboard to work with Linuxsamper, but just curiosity about this apparent conflict.

Last edited by amc252 on Tue May 23, 2023 6:06 pm, edited 1 time in total.
User avatar
noedig
Established Member
Posts: 233
Joined: Wed Feb 12, 2014 4:39 am
Location: South Africa
Has thanked: 9 times
Been thanked: 52 times

Re: Qsampler catch 22

Post by noedig »

To bridge your keyboard ALSA midi to Jack midi, run

Code: Select all

a2jmidid -ue

(-u removes the ALSA numbers from the port, allowing the port to be named the same always. Since you probably only have one keyboard of a certain model, this should work fine)

After running the command, you'll see your keyboard midi port under Jack (under "a2j" if I recall correctly).

Chibchan
Established Member
Posts: 64
Joined: Wed Jun 19, 2013 6:56 am
Location: Brooklyn
Has thanked: 1 time
Been thanked: 9 times

Re: Qsampler catch 22

Post by Chibchan »

My a2jmidid -ue will freeze qjackctl if i dont add "&" to end of a2jmidid like so... "a2jmidid -ue &" without quotes.
If your qjackctl freezes, you might have somewhere to start.

User avatar
onefang
Established Member
Posts: 148
Joined: Fri Feb 03, 2023 1:17 am
Location: Australia
Has thanked: 67 times
Been thanked: 11 times
Contact:

Re: Qsampler catch 22

Post by onefang »

I have this in my QJackCtl startup script -

Code: Select all

# Bridge ALSA ports to JACK ports.  The --ehw enables hardware ports as well, equal to using the seq
# MIDI driver according to
# https://freeshell.de/~murks/posts/ALSA_and_JACK_MIDI_explained_(by_a_dummy_for_dummies)/

a2j_control --ehw && a2j_control --start

No need for & at the end as they do that themselves.

And in the shutdown script -

Code: Select all

a2j_control --stop && a2j_control --exit
killall -TERM a2jmidid

I prefer to be known as a figment of the 'nets imagination, living in the future, waiting for the rest of you to catch up.
Notes from Untalenz, an untalented old muso https://Untalenz.rocks/

amc252
Established Member
Posts: 127
Joined: Fri May 05, 2023 12:24 am
Has thanked: 86 times
Been thanked: 18 times

Re: Qsampler catch 22

Post by amc252 »

Thanks everybody for the feedback.

Code: Select all

a2jmidid -ue & 

worked like a charm.

Post Reply