stole a spectrum analyser code