 #define keyON 127
 #define keyOFF 0
 
+MIDI_CREATE_DEFAULT_INSTANCE();
+
 // constants won't change. They're used here to
 // set pin numbers for first 2 octaves
-const int keyPins[] = {28, 26, 24, 22, 13, 12, 11, 10, 9, 8, 7, 6, 14, 15, 16, 17, 18, 19, 20, 21, 27, 25, 23, 29,};
+const int keyPins[] = {28, 26, 24, 22, 13, 12, 11, 10, 9, 8, 7, 6, 14, 15, 16, 17, 18, 19, 20, 21, 27, 25, 23, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 52, 50, 48, 46, 44, 42, 40, 38, 36, 34, 32, 30,};
 const int rankPins[] = {5, }; // drive wire(s) for ranks
-const int ledPin = LED_BUILTIN;  // LED pin
 /*
   Note for reference, the analog -> digital pin mappings for the Mega are:
   A0 = 54

/*
 Test pseudo-MIDI commands from a 3x2 key matrix.

 Turns on a LED when at least one key is pressed.

 The circuit:
 * OrganDuino PCB shield, populated with diodes
 * First two octaves (24 keys) soldered in
 * Rank 0 jumper bridged on reverse side

 created 2016 by @JDWarner
*/


void setup() {
  // Start the Serial interface
  MIDI.begin(1);
  Serial.begin(115200);

  // drive pins per rank
  for(int d=0; d<numRanks; d++){
