Pitch tracking is the process of finding the dominant frequency of an audio signal.
Applied to programming, Pitch tracking often involves the use of frequency-domain dsp technics such as the fft but some time-domain technics exist as well.
wikipedia artcile about pitch tracking algorithms