- Home /
Question by
DaipayanRoy · Jul 20, 2017 at 12:29 PM ·
instantiateaudiomusic
Spawning based on Music
Hey guys, i am am trying to build something with music in Unity. I am able to scale objects with the Music using the spectrum data(GetSpectrumData), but i want to spawn objects using the music.
I am not sure how to proceed with this. Any help will be appeciated. Thanks.
Comment
Answer by jkeogh1413 · Mar 08, 2018 at 03:32 AM
There are a number of ways to use the output of GetSpectrumData
over time to determine when something significant has happened in the audio. You want to find some algorithm that says "this spectrum data is more significant than usual". This article walks through one algorithm using spectral flux to find peaks in the spectrum. https://medium.com/giant-scam/algorithmic-beat-mapping-in-unity-intro-d4c2c25d2f27