MP3 Player Shield Help

I am working on a project that has both LED commands and sound. I have the MP3 player shield but not the mono audio amp breakout board. I have been following instruction on Sparkfun about their MP3 player shield however, I get stuck on the second to last page about triggers. All I want is one song to play on repeat like you would have the LEDs on a loop. I have an arduino uno, 8gb micro sd card, mp3 player shield from Sparkfun, and 5 LEDs that need to be together.
I would like the sound to play with the LEDs and so far I haven't been able to get both together. When I combine the two codings together when they are fine by themselves but have a bunch of problems when I put them together.
So the goals I want to achieve include:

  • getting the sound to loop without using my computer to keep playing it
  • having the LED sequence and the sound together on one arduino uno

This is the link I have from Sparkfun about the MP3 Sheild. I want it to play sound and I would like this to no be reliant on my computer to have it play the music by going through Serial Monitor. (I tried posting the code but it exceeded the 9500 characters maximum :astonished:)
https://learn.sparkfun.com/tutorials/mp3-player-shield-hookup/using-the-sfemp3shield-library

This is my Heartbeat sequence for the LEDs

long heartBeatArray[] = {
    150, 220, 150, 1000};
int hbeatIndex = 1;   // this initialization is important or it starts on the "wrong foot"
long prevMillis;

int LEDpin = 13;
int Sound = 10;
int Sound2 = 8;
int Amp = 7;

void setup()                    
{
    Serial.begin(9600);
    pinMode(LEDpin, OUTPUT);
    pinMode(Sound, OUTPUT);
    pinMode(Sound2, OUTPUT);
    pinMode(Amp, OUTPUT);
}

void loop()                    
{
    heartBeat(1.0);   // try changing the parameter
}

void heartBeat(float tempo){
    if ((millis() - prevMillis) > (long)(heartBeatArray[hbeatIndex] * tempo)){
        hbeatIndex++;
        if (hbeatIndex > 3) hbeatIndex = 0;

        if ((hbeatIndex % 2) == 0){ 
            digitalWrite(LEDpin, HIGH); 
            delay((int)heartBeatArray[hbeatIndex]) ;   
            digitalWrite(LEDpin, LOW); 
        }
        hbeatIndex++;
        // Serial.println(hbeatIndex);
        prevMillis = millis();

    }

Please if anyone can help me get this together that would be great. I would like to not spend anymore money since I just purchased the arduino kit and shield for $140 but if I have to I can.

Check out Bill's simplified playing script. It looks like this would be easy to repeat
http://www.billporter.info/2012/01/28/sparkfun-mp3-shield-arduino-library/

Still having problems with redefining and errors can someone help me?

#include <SPI.h>
#include <SdFat.h>
#include <SdFatUtil.h> 
#include <SFEMP3Shield.h>

SdFat sd;
SFEMP3Shield MP3player;

void setup() {

  Serial.begin(9600);

  //start the shield
  sd.begin(SD_SEL, SPI_HALF_SPEED);
  MP3player.begin();

  //start playing track 1
  MP3player.playTrack(1);
}

//do something else now
long heartBeatArray[] = {
    150, 220, 150, 1000};
int hbeatIndex = 1;   // this initialization is important or it starts on the "wrong foot"
long prevMillis;

int LEDpin = 13;
int Sound = 10;
int Sound2 = 8;
int Amp = 7;

void setup()                    
{
    Serial.begin(9600);
    pinMode(LEDpin, OUTPUT);
    pinMode(Sound, OUTPUT);
    pinMode(Sound2, OUTPUT);
    pinMode(Amp, OUTPUT);
}

void loop()                    
{
    heartBeat(1.0);   // try changing the parameter
}

void heartBeat(float tempo){
    if ((millis() - prevMillis) > (long)(heartBeatArray[hbeatIndex] * tempo)){
        hbeatIndex++;
        if (hbeatIndex > 3) hbeatIndex = 0;

        if ((hbeatIndex % 2) == 0){ 
            digitalWrite(LEDpin, HIGH); 
            delay((int)heartBeatArray[hbeatIndex]) ;   
            digitalWrite(LEDpin, LOW); 
        }
void loop() {

  Serial.println("I'm bored!");
  delay(2000);