Spawning objects in time to music

Hi Iam working on a game where you have to avoid objects and each level is set to a different song. So I am wondering if there is any way that I can spawn them in time with the music.

Here is a great tutorial for making a rhythm game in Unity Blogs recent news | Game Developer