help coding spectrum analyzer

Hello!
I am fairly knew to arduino, but I have some experience coding,but not familiar with arduino syntax (or c). I think I have set up a decent code, but I am unsure. What am doing, is plugging in music to 1 channel of http://bliptronics.com/item.aspx?ItemID=116 blip's spectrum analyzer. From there i will send the data from the analyzer to rgb led strips. (1 frequency to 1 channel of color(i have 2 strips, with 2 separate amps, so 6 total colors) but I am lost on how to make it work. any help would be awesome! And if my code is just plain wrong feel free to tell me so!
You are awesome!

UPDATED CODE 2/20/2011

int SpectrumLeft[6];
int ledintensity[6];
int ledintensity2[6];
int ledintensity3[6];
int analyze1[6];
int analyze2[6];
int fadespeed;
byte LED;
byte LED2;
byte spect;
byte db;

int led6 = 6;
int led7 = 3;
int led8 = 5;
int led9 = 9;
int led10 = 10;
int led11 = 11;

void setup () {
    pinMode(led6,OUTPUT);
    pinMode(led7,OUTPUT);
    pinMode(led8,OUTPUT);
    pinMode(led9,OUTPUT);
    pinMode(led10,OUTPUT);
    pinMode(led11,OUTPUT);
}
//Add a for loop so animation is smoother http://www.arduino.cc/en/Reference/For (this is all the basic code that the anaylzer needs)
void readSpectrum() {
  // Band 0 = Lowest Frequencies.
  byte Band;
  for(Band=0;Band <6; Band++){
    SpectrumLeft[Band] = analogRead(0); //left
    digitalWrite(4,HIGH);  //Strobe pin on the shield
    digitalWrite(4,LOW);     
  }
}

void same() {
  for(LED2=6; LED2 <12; LED2++){
      ledintensity2[LED2]=analyze1[LED2];
      delay(1);
      ledintensity2[LED2]=analyze2[LED2];
      if (analyze1[LED2]==analyze2[LED2]) {
        fadespeed = 75;
      }
       else {
        fadespeed = 0;
      }
   }
}

void fade() {
  if (fadespeed > 0) {
   for(LED2=6; LED2<12; LED2++)
    ledintensity2[LED2] - fadespeed;
  } 
}

void loop () {
  for(LED=6; LED <12; LED++){
    for(spect=0; spect <7; spect++){
        for(LED2=6; LED2 <12; LED2++){
          readSpectrum();
          ledintensity2[LED2]=(ledintensity[LED]+(25*SpectrumLeft[spect])); //this should in theory add the data of the analyzer to the base value for the lights, then send to the output the correct light level
          fade();
        }
      }
  }

  
    analogWrite(led6, ledintensity2[6]);
    analogWrite(led7, ledintensity2[7]);
    analogWrite(led8, ledintensity2[8]);
    analogWrite(led9, ledintensity2[9]);
    analogWrite(led10, ledintensity2[10]);
    analogWrite(led11, ledintensity2[11]);
}
int SpectrumLeft;
int SpectrumRight;

const int led6 = 6;
const int led7 = 7;
const int led8 = 8;
const int led9 = 9;
const int led10 = 10;
const int led11 = 11;

int led6intensity= 0;
int led7intensity= 0;
int led8intensity= 0;
int led9intensity= 0;
int led10intensity= 0;
int led11intensity= 0;

void setup () {
  
}

readSpectrum()
{
  // Band 0 = Lowest Frequencies.
  byte Band;
  loop()
  {
    SpectrumLeft[1] = analogRead(0); //left
    SpectrumRight[2] = analogRead(1) //right
    SpectrumLeft[3] = analogRead(3); //left
    SpectrumRight[4] = analogRead(4); //left
    SpectrumLeft[5] = analogRead(5); //left
    SpectrumRight[6] = analogRead(6); //left
    
    analogWrite(led6, led6intentsity);
    analogWrite(led7, led7intentsity);
    analogWrite(led8, led8intentsity);
    analogWrite(led9, led9intentsity);
    analogWrite(led10, led10intentsity);
    analogWrite(led11, led11intentsity);
  }
}

Slightly easier to compile:

const int led6 = 6;
const int led7 = 7;
const int led8 = 8;
const int led9 = 9;
const int led10 = 10;
const int led11 = 11;

int led6intensity= 0;
int led7intensity= 0;
int led8intensity= 0;
int led9intensity= 0;
int led10intensity= 0;
int led11intensity= 0;

void setup () {
    pinMode(led6,OUTPUT);
    pinMode(led7,OUTPUT);
    pinMode(led8,OUTPUT);
    pinMode(led9,OUTPUT);
    pinMode(led10,OUTPUT);
    pinMode(led11,OUTPUT);
}

loop(){
    led6intensity = analogRead(0); //left
    led7intensity = analogRead(1) //right
    led8intensity = analogRead(3); //left
    led9intensity = analogRead(4); //left
    led10intensity = analogRead(5); //left
    led11intensity = analogRead(6); //left
    
    analogWrite(led6, led6intentsity);
    analogWrite(led7, led7intentsity);
    analogWrite(led8, led8intentsity);
    analogWrite(led9, led9intentsity);
    analogWrite(led10, led10intentsity);
    analogWrite(led11, led11intentsity);
}

Thank you! I actually got it to run after that, now I am just trying to figure out why it will not analyze. I realized that I never added the code that read from the pins. (Even that I am still a little confused on, the analyzer returns 7 frequencies, but only uses 2 pins) The code I posted here uses a number of aspects from the code that Blip posted along with some code I referenced (from sparkfun for their cylcing rgb leds) My code:

int SpectrumLeft[7];

const int led6 = 6;
const int led7 = 7;
const int led8 = 8;
const int led9 = 9;
const int led10 = 10;
const int led11 = 11;

int led6intensity= 0;
int led7intensity= 0;
int led8intensity= 0;
int led9intensity= 0;
int led10intensity= 0;
int led11intensity= 0;

void setup () {
    pinMode(led6,OUTPUT);
    pinMode(led7,OUTPUT);
    pinMode(led8,OUTPUT);
    pinMode(led9,OUTPUT);
    pinMode(led10,OUTPUT);
    pinMode(led11,OUTPUT);
}

void loop(){
  byte Band;
    for(Band=0;Band <7; Band++)
  {
    SpectrumLeft[Band] = analogRead(1); //right
    analogWrite(led6, led6intensity);
    analogWrite(led7, led7intensity);
    analogWrite(led8, led8intensity);
    analogWrite(led9, led9intensity);
    analogWrite(led10, led10intensity);
    analogWrite(led11, led11intensity);
  } 
}

Blips code:

// Spectrum analyzer read values will be kept here.
int SpectrumLeft[7];
int SpectrumRight[7];


// Function to read 7 band equalizers
 
void readSpectrum()
{
  // Band 0 = Lowest Frequencies.
  byte Band;
  for(Band=0;Band <7; Band++)
  {
    SpectrumLeft[Band] = analogRead(0); //left
    SpectrumRight[Band] = analogRead(1) //right
    digitalWrite(6,HIGH);  //Strobe pin on the shield
    digitalWrite(6,LOW);     
  }
}

Plz., have a look at:
http://fftarduino.blogspot.com/2011_02_01_archive.html

I've finished it recently.
In original code it splits input sound frequency to 32 bands, 65 Hz each.
Than it summs up 10 , 11 and 11 bands to convert it in R, G and B respectevly.
You can easily modify numbers of bands, frequency range and number of
colors on your display.
Chears.

Magician.....
I don't know what to say, besides thats awesome. I would totally use, or base, my code off what you did, but my set up is completely different, so I think in order to adapt it to work for my situation, might be harder....

THANK YOU SO MUCH! and it looks sick!

Edit:
Not sure if it helps, but my set up is Arduino Uno, with blips spectrum analyzer shieldhttp://bliptronics.com/item.aspx?ItemID=116 for the lights I have 2 channels of RGB strips from usLEDsupply (so 6 channels of output)

I also added my updated code, I still am not able to get the analyzer to work (or atleast to modify the color)

Thank you! you are awesome!

int SpectrumLeft[7];

int led6 = 6;
int led7 = 7;
int led8 = 8;
int led9 = 9;
int led10 = 10;
int led11 = 11;

int ledintensity[6];
int ledintensity2[6];


void setup () {
    pinMode(led6,OUTPUT);
    pinMode(led7,OUTPUT);
    pinMode(led8,OUTPUT);
    pinMode(led9,OUTPUT);
    pinMode(led10,OUTPUT);
    pinMode(led11,OUTPUT);
}
//Add a for loop so animation is smoother http://www.arduino.cc/en/Reference/For
void readSpectrum() {
  // Band 0 = Lowest Frequencies.
  byte Band;
  for(Band=0;Band <7; Band++){
    SpectrumLeft[Band] = analogRead(1); //left
    digitalWrite(4,HIGH);  //Strobe pin on the shield
    digitalWrite(4,LOW);     
  }
}
void loop () {
  readSpectrum();
  byte LED;
  for(LED=6; LED <12; LED++){
    byte spect;
    for(spect=0; spect <7; spect++){
        byte LED2;
        for(LED2=6; LED2 <12; LED2++){
          ledintensity2[LED2]=ledintensity[LED]+SpectrumLeft[spect];
          }
      }
  }
  
    analogWrite(led6, ledintensity2[6]);
    analogWrite(led7, ledintensity2[7]);
    analogWrite(led8, ledintensity2[8]);
    analogWrite(led9, ledintensity2[9]);
    analogWrite(led10, ledintensity2[10]);
    analogWrite(led11, ledintensity2[11]);
}

hey.... thanks for all your help so far. I have gotten the code to the point where the lights turn on... but the analyzer function of it still does not work. Wondering if you guys see anything obvious!

Thanks!

int SpectrumLeft[7];
int ledintensity[6];
int ledintensity2[6];
int ledintensity3[6];
int fade = 50;
byte LED;
byte LED2;
byte spect;
byte db;

int led6 = 6;
int led7 = 7;
int led8 = 8;
int led9 = 9;
int led10 = 10;
int led11 = 11;


void setup () {
    pinMode(led6,OUTPUT);
    pinMode(led7,OUTPUT);
    pinMode(led8,OUTPUT);
    pinMode(led9,OUTPUT);
    pinMode(led10,OUTPUT);
    pinMode(led11,OUTPUT);
}
//Add a for loop so animation is smoother http://www.arduino.cc/en/Reference/For
void readSpectrum() {
  // Band 0 = Lowest Frequencies.
  byte Band;
  for(Band=0;Band <7; Band++){
    SpectrumLeft[Band] = analogRead(1); //left
    digitalWrite(4,HIGH);  //Strobe pin on the shield
    digitalWrite(4,LOW);     
  }
}

void loop () {
  readSpectrum();
  for(LED=6; LED <12; LED++){
    for(spect=0; spect <7; spect++){
        for(LED2=6; LED2 <12; LED2++){
          ledintensity2[LED2]=ledintensity[LED]+(25*SpectrumLeft[spect]);
          }
      }
  }

  
    analogWrite(led6, ledintensity2[6]);
    analogWrite(led7, ledintensity2[7]);
    analogWrite(led8, ledintensity2[8]);
    analogWrite(led9, ledintensity2[9]);
    analogWrite(led10, ledintensity2[10]);
    analogWrite(led11, ledintensity2[11]);
}

Hello all!
I made some updates to my code! I feel it is almost there! please tell me if you see anything that could be causing issues!
Thanks

int SpectrumLeft[6]; //Sets up the 6 frequencies I am analyzing
int ledintensity[6]; //sets up the first of 3 things I am storing the values
int analyze1[6]; //this and the following are used to find if the values are similar
int analyze2[6];
int fadespeed; //sets up the speed at which the lights should fade after music stops playing
byte LED; //LED/LED2 set up how the program sends the data to each seperate ledintensity pin
byte LED2; 
byte Band; //this is what the shield spectrum reader uses when it reads each frequency and then plugs it into SpectrumLeft[]



int led7 = 3;
int led6 = 6; //the 6 different channels used for the lights... the order and color do not matter
int led9 = 9;
int led10 = 10;
int led11 = 11;
int led8 = 12;

void setup () {
    pinMode(led6,OUTPUT);
    pinMode(led7,OUTPUT);
    pinMode(led8,OUTPUT);
    pinMode(led9,OUTPUT);
    pinMode(led10,OUTPUT);
    pinMode(led11,OUTPUT);
    pinMode(5, OUTPUT);
    pinMode(4, OUTPUT); 
    //Init spectrum analyzer
}
void readSpectrum() {
  // Band 0 = Lowest Frequencies.
  for(Band=0;Band <6; Band++){
    SpectrumLeft[Band] = analogRead(0); //left 
    digitalWrite(4,HIGH);  //Strobe pin on the shield
    digitalWrite(4,LOW);   
  

  }
}

void loop () {
  for(LED=6; LED <12; LED++){
    for(Band=0;Band <6; Band++){
        for(LED2=6; LED2 <12; LED2++){
          ledintensity[LED2]=0;
          readSpectrum; //runs the readSpectrum function to get the values
          ledintensity[LED2]=SpectrumLeft[Band]; //this should in theory add the data of the analyzer to the base value for the lights, then send to the fade value
        }
      }
  }

    analogWrite(led6, ledintensity[0]); //writes to the pins
    analogWrite(led7, ledintensity[1]);
    analogWrite(led8, ledintensity[2]);
    analogWrite(led9, ledintensity[3]);
    analogWrite(led10, ledintensity[4]);
    analogWrite(led11, ledintensity[5]);
}

please tell me if you see anything that could be causing issues!

Without knowing what the issues (still) are? I doubt it.