public static void send(int port, byte[] sysex) { try { ErrorMsg.reportStatus("static SysexHandler->send | port: " + port, sysex); if (PatchEdit.newMidiAPI) { SysexMessage[] a = MidiUtil.byteArrayToSysexMessages(sysex); for (int i = 0; i < a.length; i++) MidiUtil.send(MidiUtil.getReceiver(port), a[i]); } else { PatchEdit.MidiOut.writeLongMessage(port, sysex); } } catch (Exception ex) { ErrorMsg.reportStatus(ex); }
public void send(int port, byte deviceID) { send(port, deviceID, 0);
    public static void send(int port, byte[] sysex) {	try {	    ErrorMsg.reportStatus("static SysexHandler->send | port: " + port, sysex);	    if (PatchEdit.newMidiAPI) {		SysexMessage[] a = MidiUtil.byteArrayToSysexMessages(sysex);		for (int i = 0; i < a.length; i++)		    MidiUtil.send(MidiUtil.getReceiver(port), a[i]);	    } else {		PatchEdit.MidiOut.writeLongMessage(port, sysex);	    }	} catch (Exception ex) {	    ErrorMsg.reportStatus(ex);	}    }