HOW IT WORKS
The program visualizes an audio clip in a method similar to a standard equalizer. The audio file is sampled at 250 different frequencies ranging from the low to high frequencies. The value of the sample is displayed as a pixel on a scale of black to white. This process is repeated 60 times per second, or 60hz to create a “live” visualization of the audio clip as it plays.
The rate of 60hz is chosen because it matches the maximum frame rate used in this project. If the clip was sampled at a higher frequency some of the sampled values would not be represented in a rendered frame of the output video, and that calculation would only add unnecessary computation and slow things down.