Code examples from Numbers and Notes

Posted: April 15th, 2012 | Author: | Comments Off on Code examples from Numbers and Notes

As promised! Download here.

Whatis: MATLAB and C examples from Appendix B of Numbers and notes. The program reads in WAVE format files so that they may be properly decoded for further analysis—the RIFF header information is read in, tossed, and the binary is converted to decimal floats. Then, computes an FFT and spits out a CSV file ready to be opened in Excel. Instructions for how to run these files is given in the book!

As for the MATLAB code, I’ve included the spectrogram maker and a simple FFT script. Remember to add this folder’s directory to your MATLAB path by going to File->Set Path…!

Happy hacking!

Comments are closed.