Stuff for Scotty's Spectrum Analyzer, and some additions for other purposes.