         counterT ++;
       }
     else {
-      counterP --;
+      counterT --;
     }
     Serial.print("PositionT: ");
     Serial.println(counterT);

  gLastState = state;
  }
}

void setup(){
  //Setup encoders' pins
  pinMode (outputA,INPUT);
  pinMode (outputB,INPUT);
  pinMode (outputC,INPUT);


String notes[] = {"C","C#","D","D#","E","F","F#","G","G#","A","A#","B"};
int stepArr[] = {0,2,4,5,7,9,11,12};
int keyStep[] = {10, 5, 0, 7, 2, 9, 4}; //A#, F, C, G, D, A, E
int _note, _key, _octave;
int counterS = 0;
int counterP = 0;
int counterG = 0;
