 /* This function is called once at start up ----------------------------------*/
 void setup()
 {
+  pinMode(statusLedPin, OUTPUT);
+  digitalWrite(statusLedPin, 0);
+  
+  
   for (int pin = 0; pin < pinCount; ++pin) {
     // register every pin as input:
     pinMode(soundPins[pin], INPUT);

    // collecting data:
    
    for (int pin = 0; pin < pinCount; ++pin) {
      sample = analogRead(pin);
      if (sample < 1024) { // toss out spurious readings
         if (sample > signalMax[pin]) {
            signalMax[pin] = sample;  // save just the max levels

const int sampleWindow = 50; // Sample window width in mS (50 mS = 20Hz)
unsigned int sample;

const int statusLedPin = 13; // will light up when the channel settings are received 

const int ledPins[] = {2, 3, 4, 5, 6, 7};
const int soundPins[] = {A5, A4, A3, A2, A1, A0}; // soldered them the wrong way, so they're reversed here

const int pinCount = 6;
int soundValues[] = {0, 0, 0, 0, 0, 0};
