Nice work, I like the simplicity & loc count.
Here's another example I found that I always liked (w/source link) but definitely more complex.
https://musiclab.chromeexperiments.com/Spectrogram/
https://github.com/googlecreativelab/chrome-music-lab/tree/m...