int i;
Patch p = (Patch)ip; int i;
  public void calculateChecksum(Patch p, int start, int end, int ofs) {//ErrorMsg.reportStatus("KawaiK5000CombiDriver->calculateChecksum");    int i;    int sum = 0;    for (i = start; i <= end; i++)      sum += p.sysex[i];    sum += (byte)0xA5;    p.sysex[ofs] = (byte)(sum % 128);  }