I really like AM album by Arctic Monkeys and I decided to create audio visualizer in its cover style.
Script parse audio file to byte array and analyze its frequency.
Using the resulting value, I render the wave using the basic trigonometric formulas sin and cos.