Acquires buffers of data from the system default sound card, calculates the power spectrum of the data and plots this along with the raw sampled data to screen.
Useful as a quick and dirty (and completely uncalibrated) audio frequency spectrum analyser.
Extends previous function (http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=20541) into a Matlab Class.
The GUI uses an instance of this class.
See http://iheartmatlab.blogspot.com for a detailed run-through of the code and the programming techniques utilised.