Syntax help with 2D array

Thanks, that looks very promising and was the sort of solution I was looking for.

However, I can’t seem to make it work, that is I can’t seem to actually access the values in the table.
I needed to keep the

chord_Bank2 = new byte[5][7];

in the setup function otherwise I get a null pointer exception when trying to access the data.
I wrote some code to print out the data:-

void printChord(int chord){ // print a chord
    for(int i=0; i<6; i++){
    print(" ",chord_Bank2[chord][i]);
  }
  println();

}

but all it ever returns is 0 for each note

Yes this is the case that the table is never altered.
Is there anything else I need to include to make this work?
Thanks
Mike