PatchEdit.MidiOut.writeShortMessage (port, (byte) (0x80 + ((channel - 1) & 0xf)), (byte) PatchEdit.appConfig.getNote(), (byte) 0);
msg.setMessage(ShortMessage.NOTE_ON, channel - 1, PatchEdit.appConfig.getNote(), 0); PatchEdit.MidiOut.send(port, msg);
    public void playPatch(Patch p) { // called by core and some Editors        try {// 	    sendPatch(p);	    Thread.sleep(100);	    PatchEdit.MidiOut.writeShortMessage		(port,		 (byte) (0x90 + ((channel - 1) & 0xf)),	// Note On with channel		 (byte) PatchEdit.appConfig.getNote(),		 (byte) PatchEdit.appConfig.getVelocity());	    Thread.sleep(PatchEdit.appConfig.getDelay());	    PatchEdit.MidiOut.writeShortMessage		(port,		 (byte) (0x80 + ((channel - 1) & 0xf)),	// Note Off		 (byte) PatchEdit.appConfig.getNote(),		 (byte) 0);	} catch (Exception e) {	    ErrorMsg.reportStatus(e);	}    }