  * work together with the lastNote variable to keep track of blocked
  * lasers. Here, I use an AND operator to read if the value has been
  * set, and OR to set the value. */
-uint8_t laser1 = 0x01;
-uint8_t laser2 = 0x02;
-uint8_t laser3 = 0x04;
-uint8_t laser4 = 0x08;
-uint8_t laser5 = 0x10;
-uint8_t laser6 = 0x20;
-uint8_t laser7 = 0x40;
-uint8_t laser8 = 0x80;
+uint8_t laserArray[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
 
 // Variable to keep track of which set of notes (lower or upper 4)
 // Needed to work around limited lasers

  for (int i = 0; i <= LASTPORT; i++) {
    if(analogRead(i) > THRESHOLD) {
#ifndef WIND
      if (!(lastNote & (inttomask(i+1)))) {
#endif
        // Beam has been cut
        // i+1 is because i is 0 indexed, but the ID starts with 1
        musicOn(i + 1);
#ifndef WIND
        lastNote |= (inttomask(i+1));
      }
#endif
    } else {
#ifndef WIND
      if ((lastNote & (inttomask(i+1)))) {
        lastNote &= ~(inttomask(i+1));
      }
#endif
      // Hand is gone. Stop the sound
      musicOff(i + 1);
    }
    // Delay 10 to prevent weird analog readings
    // delay(DELAY);
  }
}


  }
}

void loop()
{
  // Main loop
