             if(sensorValue > THRESHOLD_FAIL){
                 clapMeter = clapMeter + sensorValue;
                 goodClap++;
+                //setHistogram(sensorValue);
+                hz = zero;
+                for(row=0;row<16;row++){
+                    for (int i=0;i<2;i++){
+                        SPI.transfer(~(hz[i*32+row*2]));
+                        SPI.transfer(~(hz[i*32+row*2+1]));
+                    }
+                    digitalWrite(OE,HIGH);
+                    hc138sacn(row);
+                    digitalWrite(STB,LOW);
+                    digitalWrite(STB,HIGH);
+                    digitalWrite(OE,LOW);
+                }
             } else {
                 if(badClap<100){
                     badClap++;
                 } else {
-                    keep = false;
+                    //keep = false;
                 }
             }
 


#define SOUND_SENSOR A0
#define SOUND_SENSOR_2 A2
#define THRESHOLD_FAIL 400 //The threshold to turn the led on 400.00*5/1024 = 1.95v
#define THRESHOLD_GOOD 400
#define THRESHOLD_WIN 600

#define LCD_OUT 8

#define RowA 2
#define RowB 3

/*
LCD - no combina bien con pintar tambien en la matrix porque no se refresca bien
SENSORES - los probamos en la ofi por no andar gritando en casa
BARRAS
MEJORAR PALABRAS

  The circuit:
  * A connect to digital 2
  * B connect to digital 3
