protected int trimSysex(Patch p) {
protected int trimSysex(IPatch ip) { Patch p = (Patch)ip;
    protected int trimSysex(Patch p) { // no driver overrides this now.        if (trimSize > 0 && p.sysex.length > trimSize	    && p.sysex[trimSize - 1] == (byte) 0xf7) {	    byte[] sysex = new byte[trimSize];	    System.arraycopy(p.sysex, 0, sysex, 0, trimSize);	    p.sysex = sysex;        }	return p.sysex.length;	// == trimSize    }