How to link an input automatically to qsynth?

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
User avatar
midish
Established Member
Posts: 15
Joined: Thu Oct 15, 2015 3:23 am
Location: Chile

How to link an input automatically to qsynth?

Post by midish »

That's pretty much the question :lol: I need qsynth to be always receiving from Midi Through whenever I start it.. How can I do it?
Under configuration qsynth doesn't list any midi device...
varpa
Established Member
Posts: 512
Joined: Fri Feb 25, 2011 6:40 pm
Been thanked: 14 times

Re: How to link an input automatically to qsynth?

Post by varpa »

You can write a script to start qsynth and use aconnect to make the midi connection, something like this:
#!/bin/bash
qsynth &
aconnect 14:0 131:0

Use acconnect -i and acconnect -o to see your alsa midi connections. In my case:
$ aconnect -i
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
$ aconnect -o
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 131: 'FLUID Synth (Qsynth1)' [type=user]
0 'Synth input port (Qsynth1:0)'

You could also make the connection with aj-snapshot.
Post Reply