public void calculateChecksum(byte sysex[], int start, int end, int ofs) {
public static void calculateChecksum(byte sysex[], int start, int end, int ofs) {
  public void calculateChecksum(byte sysex[], int start, int end, int ofs) {    int sum = 0;    for (int i = start; i <= end; i++) {      sum += sysex[i];    }    sysex[ofs] = (byte)(sum & 0x7F);  }