qmidiarp has jack support but i don't know how use
it to connect this
application
If you use qjackctl you can connect all applications in the connectwidget. If
you use jackd on the comandline you can list all ports with jack_lsp, connect
ports with jack_connect and disconnect them with jack_disconnect
greetings hermann