Unity is inherently built with the capability to analyze a playing audio source and determining the various output frequency signal levels. While the mathematics behind this are quite advanced, understanding the theory and background of how this all works will only benefit us later when we build an audio visualizer. Therefore, we are going to cover the theory on how audio can be analyzed for visualization. Starting in the next section, we will look at what comprises an audio signal.
Fourier's theorem states that all signals are the sum of sines. This is another way of saying that all audio signals are comprised of component sound waves, called sine waves. Let's look at an example of this in the following diagram:
Two different frequency sine waves combined into a signal
The preceding diagram shows an example of two different frequency sound waves (sine waves) being combined into a single signal. Unfortunately, you still...