Reacting to sound output Via SoundMixer.computeSpectrum()

I wanted to design a pesudo-visualizer of sorts, so I looked up the computeSpectrum method…

I can get a ByteArray out of it, but I don’t know how to read the data out of it properly (I know the format 512 bianary numbers, but I don’t know exactly what I should do with them…