Help creating a sound-sensing LED display

Here is a link to a Sparkfun thread that is pretty much what I'm aiming for. All the tech talk is going way over my head, and I'm somewhat stuck in a timecrunch.

http://forum.sparkfun.com/viewtopic.php?f=14&t=11430

Here is the code provided in the thread:

int audioIn = 1;
int val = 0;

void setup() {
pinMode(audioIn, INPUT);
Serial.println(9600);
}

void loop() {
val = analogRead(audioIn);
Serial.println(val);
}

From here, I'm completely clueless. I don't know what code to add, where to add it, and I'm not even sure if its wired together right.

Current setup:
Electret Condensor Microphone
VCC -> Arduino 5v
Ground-> Arduino Digital Gnd
Output->Arduino Analog 0-Pin

-EDIT-

Here is more code I found online (http://www.dtic.upf.edu/~jlozano/interfaces/microphone.html), hopefully this one proves more helpful

// these constants won't change:
const int ledPin = 13;      // led connected to digital pin 13
const int electret = 0;  // the amplifier output is connected to analog pin 0


// these variables will change:
int sensorReading = 0;      // variable to store the value read from the sensor pin
int sensorMax = 0;
int sensorMin = 500;
int threshold;


void setup() {
  pinMode(ledPin, OUTPUT); // declare the ledPin as as OUTPUT
  Serial.begin(57600);       // use the serial port
  pinMode(13, OUTPUT);
  digitalWrite(13, HIGH);
  while (millis() < 3000) {
    threshold = analogRead(electret);

    // record the maximum sensor value
    if (threshold > sensorMax) {
      sensorMax = threshold;
    }

  }

  // signal the end of the calibration period
  digitalWrite(13, LOW);
  threshold = sensorMax;

}

void loop() {
  // read the sensor and store it in the variable sensorReading:
  sensorReading = analogRead(electret);    

  // if the sensor reading is greater than the threshold:
  if ((sensorReading >= threshold)) {
    Serial.println(sensorReading-threshold); //Will send only positive and absolute values of waveform         


  }



  delay(2);  // Better for Processing showing data
}