<< Chapter < Page Chapter >> Page >
This module discusses the method to convert a given frequency to the note that was most likely played to generate it.

Now that the frequencies in each window have been found, it is time to determine what note was most likely played to generate each frequency. As we know that each frequency is 12 2 times larger than the preceding frequency, we can declare the points that are 24 2 times larger and smaller than the known note frequency to be the limits of the range of frequencies that map to that known note. Thus for a known frequency, f o , the range of frequencies that map to it is:

-24 2 *f o f 24 2 *f o

If we do this for every known note frequency, then the limits for two adjacent frequency ranges coincide exactly, and we have a function that maps any frequency to a note. Such a function is graphed below.

A section of the regression curve used spanning from 440 Hz to 1760 Hz. Shown in more detail is the range of frequencies that correspond to A#5.

This is the regression curve we used to map frequencies to notes. A fast way of implementing it is to number each note from 1 to 88, starting with the lowest note that can be played with a piano, and ending at the highest. After doing this, the following Matlab expression will evaluate this curve:

round(12*log(f/27.5)/log(2))+1

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Elec 301 projects fall 2006. OpenStax CNX. Sep 27, 2007 Download for free at http://cnx.org/content/col10462/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Elec 301 projects fall 2006' conversation and receive update notifications?

Ask