I have been trying to generate Audacity-like waveforms. I used java sound api and got up to a decent point of representing the actual mp3 to a waveform. Do you have in mind any mathematic function that I can apply to the dataset to be painted so the it looks more dense and smoother?
Thanks!
EDIT 1:
The proposal for moving average(I used the exponential) works great but do to the restrictions I have(single threaded) was performing really heavy. Apart from that the output was excellent!
I ended up into a small implementation of my own. I take the local maxima of an area of values and connect it with a straight line to the local maxima of the next area. It is fast and gives nice output.
EDIT 2: Linking code/solution by @Nicholas DiPiazza