Could not run the sketch (Target VM failed to initialize)

Great you tested with some simpler files. I suggest you use the minim library for your project instead. As it is right now, the sound library is being revamped via a GSOC project. You might want to reach the current developers and comment about your problem or go ahead and use minim, which you can be installed via the Contribution Manager in the PDE.

Kf