public void calculateChecksum(Patch p,int start,int end,int ofs) {
public void calculateChecksum(IPatch ip,int start,int end,int ofs) { Patch p = (Patch)ip;
    public void calculateChecksum(Patch p,int start,int end,int ofs) {        int i;        int sum=0;        //System.out.println("Checksum was" + p.sysex[ofs]);        for (i=start;i<=end;i++) {            sum+=p.sysex[i];        }        p.sysex[ofs]=(byte)(sum % 128);        //System.out.println("Checksum new is" + p.sysex[ofs]);    }