CITATION — REFERENCE ENTRY
Pitch Extraction and Fundamental Frequency: History and Current Techniques — Department of Computer Science, University of Regina
- Key
- gerhard2003-pitch-extraction
- Authors
- Gerhard, David
- Issued
- 2003-11
- Type
- report
- Publisher
- Department of Computer Science, University of Regina
- Publisher place
- Regina, Saskatchewan
Raw CSL JSON
{
"URL": "https://www.cs.bu.edu/fac/snyder/cs583/Literature%20and%20Resources/PitchExtractionMastersThesis.pdf",
"ISBN": "0-7731-0455-0",
"note": "Quotes are from a copy of the report hosted on a Boston University course page; locators are the report's sections.",
"type": "report",
"genre": "Technical Report",
"title": "Pitch Extraction and Fundamental Frequency: History and Current Techniques",
"author": [
{
"given": "David",
"family": "Gerhard"
}
],
"issued": {
"date-parts": [
[
2003,
11
]
]
},
"number": "TR-CS 2003-06",
"publisher": "Department of Computer Science, University of Regina",
"publisher-place": "Regina, Saskatchewan"
}
Claims
-
Pitch extraction, or fundamental frequency estimation, has been studied since the early computer age; most techniques do well on a single clean pitched signal but many still fail on noisy signals or several simultaneous pitches.
"Pitch extraction (also called fundamental frequency estimation) has been a popular topic in many fields of research since the age of computers. Yet in the course of some 50 years of study, current techniques are still not to a desired level of accuracy and robustness. When presented with a single clean pitched signal, most techniques do well, but when the signal is noisy, or when there are multiple pitch streams, many current pitch algorithms still fail to perform well."
-
F0 algorithms tend to assume a single pitched signal homogeneous within each frame, a specific audio domain, and that F0 estimation is the same as pitch detection; there may be no 'silver bullet' algorithm for every periodic input.
"f0 estimation algorithms tend to be based on a number of fairly strict assumptions: 1. The input waveform consists of a single pitched signal, segmented into frames, and the waveform is homogeneous throughout the time frame being considered. 2. The input is limited to a specific audio domain, for which the algorithm is designed. 3. f0 estimation is the same thing as pitch detection. ... there is no "silver bullet" algorithm that will handle every periodic input without error."
-
The autocorrelation of a periodic waveform is itself periodic, and its first peak indicates the period; with a harmonically complex waveform, smaller peaks at the periods of upper harmonics must be told apart from the large peak at the fundamental period.
"Periodic waveforms exhibit an interesting autocorrelation characteristic: the autocorrelation function itself is periodic. ... The first peak in the autocorrelation indicates the period of the waveform. Problems with this method arise when the autocorrelation of a harmonically complex, pseudoperiodic waveform is taken. ... The first peak would not be at the period of the full waveform, but at the period of the 20th harmonic overtone. The first "large" peak would indeed occur at the fundamental period of the waveform"
-
The cepstrum is the Fourier transform of the log magnitude spectrum, its name a reversal of the first letters of 'spectrum'; the regularly spaced harmonic peaks of a pitched sound make the log spectrum periodic, giving a cepstral peak at the period. It assumes evenly spaced partials and fails on inharmonic sounds like bells or on pure sinusoids; it was developed for speech.
"Cepstrum analysis is a form of spectral analysis where the output is the Fourier transform of the log of the magnitude spectrum of the input waveform [9]. ... The name cepstrum comes from reversing the first four letters in the word "spectrum" ... The theory behind this method relies on the fact that the Fourier transform of a pitched signal usually has a number of regularly spaced peaks, representing the harmonic spectrum of the signal. ... The Fourier transform of this waveform has a peak at the period of the original waveform. ... The cepstrum method assumes that the signal has regularly-spaced frequency partials. If this is not the case, such as with the inharmonic spectrum of a bell or the single-partial spectrum of a sinusoid, the method will provide erroneous results. ... It was originally developed for use with speech signals, which are spectrally rich and have evenly spaced partials."
-
F0 estimators built for one application, such as musical note detection or speech analysis, work less well in another domain, so there are many estimators but few suited to more than one domain.
"f0 estimators developed for a particular application, such as musical note detection or speech analysis, are well understood, but depend on the domain of the data: a detector designed for one domain is less accurate when applied to a different domain. The result is that there are many f0 estimators currently on the market, but few that are appropriate to more than one domain."
-
Evaluating an F0 estimator is hard because performance depends on domain and because F0 itself is difficult to measure for a reference.
"It is difficult to empirically measure the performance of a f0 estimator for several reasons. First, performance depends on domain, as discussed above. ... Second, it is difficult to automatically rate the result of a f0 estimator against expected outcomes, precisely because it is difficult to measure f0 in the first place."
-
Frequency-domain methods identify a pitched signal's harmonically related partials and derive F0 from them; Martin Piszczalski was working on such pitch detection as the first step of an automatic music transcription system as early as 1979.
"Pitched signals tend to be composed of a series of harmonically related partials, which can be identified and used to extract the f0. ... As early as 1979, Martin Piszczalski was working on a complete automatic music transcription system, the first step of which would be pitch detection [20, 21]."
-
Most of this research goes under the name of pitch detection, though what is estimated is the fundamental frequency; musical pitch is a perceptual feature, only loosely related to the logarithm of frequency.
"Most research into this area goes under the name of pitch detection, although what is being done is actually f0 estimation. ... The musical pitch of an audio signal is a perceptual feature, relevant only in the context of a human listening to that signal. ... Pitch is loosely related to the log of the frequency, perceived pitch increasing about an octave with every doubling in frequency."
-
When the fundamental is weak, a harmonic can be mistaken for it; subharmonic errors can make an estimate jump between subharmonics of the true F0 within a single note.
"When a signal is pseudo-periodic with a low-power fundamental, it is possible to mistake an upper harmonic for the fundamental. Humans do this as well ... Subharmonic errors can lead to misleading results because they often occur within the context of a single pitch event, causing the f0 estimation to jump back and forth between two (or more) subharmonics of the "true" fundamental frequency."
-
Time-domain methods detect F0 from the waveform itself; one family counts events that repeat once per period, such as zero crossings, whose rate is inversely related to the period.
"The most basic approach to the problem of f0 estimation is to look at the waveform that represents the change in air pressure over time, and attempt to detect the f0 from that waveform. ... The theory behind these methods is that if a waveform is periodic, then there are extractable time-repeating events that can be counted, and the number of these events that happen in a second is inversely related to the frequency."
-
YIN minimises the difference between the waveform and a delayed copy, rather than maximising their product as autocorrelation does, and uses a cumulative mean to de-emphasise dips at longer periods and reduce subharmonic errors.
"YIN is based on the difference function, which, while similar to autocorrelation, attempts to minimize the difference between the waveform and its delayed duplicate instead of maximizing the product (for autocorrelation). ... In order to reduce the occurrence of subharmonic errors, YIN employes a cumulative mean function which de-emphasizes higher-period dips in the difference function"
Available in