    Method that  updates the velocity of a note.
    @param pPos the position of the note in the array.
 */
-byte getVelocity(int pPos) {
+byte getVelocity(byte pPos) {
   if (noteTime[pPos] == 0) {
     noteTime[pPos] = millis();
     /* Serial.println("Time");

    shiftOut(dataPin, outClkPin, MSBFIRST, blank);
  }
  digitalWrite(latchPin, HIGH);
  delayMicroseconds(5);
}

/**

      delay(10);*/
    return 127;
  } else {
    byte tempVelocity = map(abs(millis() - noteTime[pPos]), 0, sensitivity, 127, 10);
    noteTime[pPos] = millis();
    if (tempVelocity < 10) {
      tempVelocity = 10;
