Unfortunately, JavaSound on Linux only supports hardware interfaces. I haven’t done this for a while, but you’ll probably have to look into the snd-virmidi module to create virtual hardware ports.
Another option would be to send MIDI directly through JACK using JNAJack, rather than MidiBus - see
/*
* MIDI support for JNAJack - Example MIDI thru JACK client application.
* Copyright (C) 2014 Neil C Smith, derived from code by Salvatore Isaja
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 of the License,
* or (at your option) any later version.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this work; if not, see http://www.gnu.org/licenses/
*/
package org.jaudiolibs.examples;
import java.nio.ByteBuffer;
This file has been truncated. show original