Please add 3 lines in PassportMidiInterface.java for ignore MIDI device without receivers.
In Java, several MIDI devices are recognized as multiple devices with the same name only as receivers or transmitters. Ignoring devices without receivers can avoid problems.
public void resume() {
if (isRunning() && midiOut != null) {
return;
}
try {
MidiDevice selectedDevice = MidiSystem.getSynthesizer();
MidiDevice.Info[] devices = MidiSystem.getMidiDeviceInfo();
if (devices.length == 0) {
System.out.println("No MIDI devices found");
} else {
for (MidiDevice.Info dev : devices) {
if (MidiSystem.getMidiDevice(dev).getMaxReceivers() == 0) {
Please add 3 lines in PassportMidiInterface.java for ignore MIDI device without receivers.
In Java, several MIDI devices are recognized as multiple devices with the same name only as receivers or transmitters. Ignoring devices without receivers can avoid problems.