Spectrum - How to call functions beyond the frequency?

Hi,
I’m writing a game rhythm and I would like to make some “object” created (Instantiate) to the rhythm of music?

Maybe you find some talks about that from the game Veat Buddy, which was made with Unity and is rythm based, or crypt of the necrodancer, of which I don’t know if it is, but it’s also rythm based