Like a prism that separates light into its constituent colors, an audio spectrum analyzer separates a sound into different frequency components. The most common way to do audio spectrum analysis is using a mathematical operation called a Forier transform. In this tutorial, we are going to use Unity’s GetSpectrumData() function to repeatedly apply the Forier transform to an Audio Clip and then scale a set of objects according to the frequency contend of the clip.

Begin by importing any audio clip into unity.