   //It's already read the zero item. So read array items 1 through 7.
   for (int i = 1; i < numberNotes; i++)
   {
-    reflectedLightValues[i] = stepTheMotorAndGetLightReading(FORWARD);
-    checkNotes(reflectedLightValues, pluckedNotes);
+    stepTheMotor(FORWARD);
+    waitForNote(i);
   }
 
   checkSonar();

    buf[segmentCount] = 0;
}

void logMeter(Logging & Log, int value, int maxValue, char segmentSymbol = '=')
{
  char buf[81] = {0};
  drawMeter(value, maxValue, buf, segmentSymbol, sizeof(buf) - 1);
  Log.Info("%s\n", buf);
}

int sampleLight(int sampleCount, int interval=2)

    average /= i + 1; 
    Log.Info("sample %d: %d, average - %d\n", i, sample, average);
  }
  return max(1, (int)average);
}

void setup()
