What is the code for my wave to move at the same time as the song?

The sound libraries have examples that come with them.

Processing sound library:

The Minim library also has resources and examples.

:)