   
   AFMS.begin();  // create with the default frequency 1.6KHz
   myMotor->setSpeed(250);  
-
-  //Get some initial values for each light string
-  for (int i = 0; i < numberNotes; i++) { 
-    reflectedLightValues[i] = analogRead(lightSensorPin);
-  }
 
   setupGinSing();
 }

void loop()
{

  //return;
  //There must be at least a handful notes for the code below to work right.
  if (numberNotes < 5) {
    return;
  }

  int reading = analogRead(lightSensorPin);
  //Run the laser forward, read all values, and see what is there. Note that this pretty much uses one
  //less note than requested - but the START position counts as a spot. So moving it numberNotes makes that many

  for (int i = 1; i < numberNotes; i++) {
    reflectedLightValues[i] = stepTheMotorAndGetLightReading(FORWARD);
    checkSonar();
	checkNotes(reflectedLightValues, pluckedNotes);
  }

  //It just read item 7. So going backwards, read items 6 through zero.
  for (int i = numberNotes-2; i >= 0; i--) {
    reflectedLightValues[i] = stepTheMotorAndGetLightReading(BACKWARD);
    checkSonar();
	checkNotes(reflectedLightValues, pluckedNotes);
  }
    
  checkButtons();
