Christmas gift code problem

You are using analog readings of 0 to 15 to light the LEDs but you appear to be using readings og 400 to 1000 for your pitch. You may not be getting value near that range.

Since the LEDs are working you should try using that value for the pitch. Instead of:

	int thisPitch=map(sensorReading, 400, 1000, 120, 1500);

	//play the pitch:
	tone(9, thisPitch, 10);

Try something like:

	int average=gTotal/NUM_READINGS;

	for(int i=0; i<LEDS; ++i) 
            digitalWrite(LED_PINS[i], (average>LED_THRESHOLDS[i])?HIGH:LOW);

        tone(9, map(average, 0,450,120,1500), 10);  // Play tone