title: Recognizing the pitch of a sound with matlab
body: <p>I'm trying to do a project that reads in a WAV file that has a sequence of music note in it using MATLAB. For example, my WAV file might contain a sequence of C-D-C-E. And feeding this file into my program would print out "C D C E." </p>
  
  <p>I tried using WAVREAD to turn the file into a vector, then
  used sampling to downsample it and make into a one-channel file.
  Then I was able to come up with a spectrogram that has "peaks" at certain frequencies.</p>
  
  <p>From here, I would like to get help on how to make MATLAB to recognize the frequencies at the peaks, therefore enabling me to print out the note.</p>
  
  <p>Or am I on the wrong track?</p>
  
  <p>Thanks in advance! </p>