for (int i=0;i<numPatches;i++) putPatch(p,v,i); calculateChecksum(p);
for (int i=0;i<getNumPatches();i++) putPatch(p,v,i);
  public Patch createNewPatch() // create a bank with 32 "init voice"-patches  {    byte [] sysex = new byte[trimSize];    sysex[00]=(byte)0xF0;    sysex[01]=(byte)0x43;    sysex[02]=(byte)0x00;    sysex[03]=(byte)0x09;    sysex[04]=(byte)0x20;    sysex[05]=(byte)0x00;    sysex[trimSize-1]=(byte)0xF7;    Patch v = new Patch(getDeviceNum(),DX7Constants.INIT_VOICE);        // single sysex    Patch p = new Patch(sysex,getDeviceNum(),getDriverNum());           // bank sysex    for (int i=0;i<numPatches;i++)        putPatch(p,v,i);    calculateChecksum(p);    return p;  }