       }
 #endif
       // Hand is gone. Stop the sound
-      musicOff(i + 1);
+      musicOff(i);
     }
     // Delay 10 to prevent weird analog readings
     delay(DELAY);

// Function for playing note based on ID
void musicOn(int ID) {
  switch (ID) {
  case 1:
    noteOn(NOTEON, note1, VOLUME);
    break;
  case 2:
    noteOn(NOTEON, note2, VOLUME);
    break;
  case 3:
    noteOn(NOTEON, note3, VOLUME);
    break;
  case 4:
    noteOn(NOTEON, note4, VOLUME);
    break;
  case 5:
    noteOn(NOTEON, note5, VOLUME);
    break;
  case 6:
    noteOn(NOTEON, note6, VOLUME);
    break;
  case 7:
    noteOn(NOTEON, note7, VOLUME);
    break;
  case 8:
    noteOn(NOTEON, note8, VOLUME);
    break;
  default:

/* Uncomment the define if you are using a wind instrument, such
 * as a trumpet or flute. It will disable several things that
 * are specific to string and percussion instruments. DO NOT
 * uncomment it if you are using a piano or string instrument! 
 */
// #define WIND

// Port I/O defines
