          * frequencies.
          * 
          * The effective sample rate would then be:
-         * SAMPLE_RATE / SKIP_MULT
+         * SAMPLE_RATE / (SKIP_MULT / 2)
          */
         for (int j = 0; j < SKIP_MULT; j++) {
             while(!(ADCSRA & 0x10)); // wait for adc to be ready

        Serial.print(frequency);
        Serial.print("\tBrightness: ");
        Serial.println(brightness);
        
    }
}



}

void loop() {
    // read color palette input pin here
    // this line reserved for color palette pin
    
    // check if palette changed
    // Note: this equality will be changed when color palette chooser 
    // is implemented
    if (palette_choice != palette_choice) {
        for (int i = 0; i < 24; i++) {
            color_palette[i].red = pgm_read_byte(&(palettes[i].red));
            color_palette[i].green = pgm_read_byte(&(palettes[i].green));
            color_palette[i].blue = pgm_read_byte(&(palettes[i].blue));
        }
    }
    
    cli();           // disable global interrupts
    calculateFFT();  // result is placed in fft_lin_out
    sei();           // re-enable interrupts
