 //just loop and read - need to add normalization
 void loop() {
   readSpectrum();
-  delay(1);
 }
 
 // Read 7 band equalizer.

    digitalWrite(spectrumStrobe,HIGH);
    digitalWrite(spectrumStrobe,LOW);     
  }
}

void sendSpectrum() {
  Wire.write(spectrum, 7);
}

int spectrumStrobe=4;
int spectrumAnalog=0;  

byte spectrum[9];


#define SIZE 1024
#define SLICE 32

byte huge[SIZE];
long energy[SIZE/SLICE];
int p = 0;
long t;
long start;
float bpm = 120;
boolean offBeat = true; 
boolean sentBeat = false;

void setup() { 
  start = t = millis();
  Wire.begin(0x29);              
  Wire.onRequest(sendSpectrum); 
  
