Quick suggestion on approaching this problem

PaulS:

  chqC= analogRead(CellC);

if  (chqC<thres){
  Serial.print("a");
  thres=chqC;
      }
     else if (chqC>thres) {
         }



Now, you have a threshold. What you don't have is any record of the previous reading's position relative to the threshold. Re-read what I said. You want to output a value if the previous reading was not above the threshold and the current one is. You MUST keep track of the previous reading.

Okay so I have been trying to rationalize what you have been saying and I gave it a shot. I am totally missing the boat on something. I tried to explain what I was thinking.

 chqC= analogRead(CellC);
  
  if (chqC<thres){ 
    store=HIGH;    //store previous value as high if it is less than the threshold
     }
     else if (chqC>=thres) {
       store=LOW; //store previous value as low if it is greater than the threshold
         }
 
  if ((store=HIGH) && (chqC>=thres)){ //if the stored value is high and the current value is grater than the threshold then print "a"
    Serial.print("a");
  }
}{/code]

Is this not working because the store value is getting overwritten before

I was reading this article http://siliconrepublic.blogspot.ca/2010/08/this-summer-i-have-been-tinkering-with.htmlg-with.html and he was saying something along the lines of aac keys repetitively hitting the key and doesn't allow the user to physically hold down the key for periods of time. In my case that would be holding down a note.

Is it possible I need to try approaching this problem differently?