'Through which view should I output sound waves?

I need to display the sound spectrum on half of the smartphone screen. Let's say I used the fft library and I have all the values. How do I deduce this? You need to do something like this and the old waves go off the screen. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source