Wave Shield Code Question

Is all that commented out code part of the problem, or not? If not, GET RID OF IT!.

Clearly, something you are doing is causing the Arduino to reset. Add more Serial.print() statements, to see where it is getting to/not getting to. The code between where it gets to and where it does not get to is the problem.