Unity has this super handy method for the AudioSource and AudioListener classes called GetSpectrumData(). This method fill an array with spectrum data from the audio clip as it goes along. The key…
https://justenyc.medium.com/how-to-sync-actions-with-audio-in-unity-6cdb57dd02fb
* Observer Pattern * this video by Unity * here