<< Chapter < Page Chapter >> Page >
Finding the pitch of a musical signal.

Pitch detection

Detecting the pitch of an input signal seems deceptively simple. Many groups have tackled this challenge bysimply taking the Fourier transform of the signal, and then finding the frequency with the highest spectral magnitude. As elegant as it may seem, thisapproach does not work for many musical instruments. Instead, we have chosen to approach the problem from a more expandable pointof view.

One of the problems with finding the fundamental frequency lies in simple definition. In our case, wewill define this as being the frequency that the human ear recognizes as being dominate. The human auditory system respondsmost sensitively to the equivalent of the lowest common denominator of the produced frequencies. This can be modeled by finding the strongest set of frequencies amplitudes, and taking the lowest frequency value of that group. This process is quite effective, though it does rely on the condition that the fundamental frequency actually exists, and isn't just simulated via a combination of higher harmonics. The following example illustrates this more concretely.

Frequence vs. Time for Trumpet playing a concert 'A'=440 Hz

In the above waveform, we want to find the frequency heard by the human ear as being the fundamental pitch. Todo this, we first look at the five highest peaks, which occur at 440, 880, 1320, 1760, and 2640 Hz. From this set of values, wegrab the lowest occurring frequency. Hence, the fundamental frequency of the above signal would be stated as being 440 Hz, or aconcert 'A'... which is, in fact, the pitch that was played.

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 2005. OpenStax CNX. Sep 25, 2007 Download for free at http://cnx.org/content/col10380/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

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

Ask