Cepstrum 2026-11-05
A cepstrum transforms a logarithmic spectrum back to a time-like coordinate. In the real-cepstrum convention for a discrete-time signal with Fourier transform ,
The finite-data version uses an inverse discrete Fourier transform of the log-magnitude spectrum. Zeros require suitable assumptions or numerical regularization. Using log power instead of log magnitude changes the scaling, so the convention must be stated.[ref]
The usefulness comes from convolution: if , then the spectra multiply and their log magnitudes add, giving . Multiplicative source-and-filter effects become additive.
For an ideal echo filter , with real , expanding gives
Other coefficients vanish. Thus an echo of amplitude delayed by eight samples gives coefficients at and at . Peaks reveal a delay that originally appeared as spectral ripples. The output coordinate is called quefrency. Keeping only its low-quefrency coefficients can smooth a spectral envelope, while retaining high-quefrency structure can expose repetitions.
Julius O. Smith III 2026-11-05
Julius O. Smith III works on applications of digital signal processing to music and audio. Stanford identifies him as a professor emeritus of music and, by courtesy, electrical engineering, based at its Center for Computer Research in Music and Acoustics. His doctorate in electrical engineering was completed at Stanford in 1983.[ref]
His Spectral Audio Signal Processing by Julius O. Smith III explains how to extract a spectral envelope rather than treating every narrow harmonic peak as part of the slowly varying sound shape. One method uses a cepstrum: transform a logarithmic magnitude spectrum, retain an appropriate low-quefrency region, and transform back. This separates broad spectral shape from more rapidly oscillating harmonic detail under suitable assumptions.[ref]
For example, two played notes can have different harmonic spacings while sharing a similar broad envelope associated with the instrument's resonances. Distinguishing spacing from envelope helps explain why changing a note's pitch and changing its timbre are different signal-processing tasks. The separation is approximate: window choice and closely spaced spectral features affect what the method preserves.
Figure 1.
Julius O. Smith III, portrait from Stanford's Department of Music
. External image identified on the institutional biography.
Quefrency 2026-11-05
Quefrency is the independent coordinate of a cepstrum. When a cepstrum is obtained by an inverse Fourier transform of a logarithmic magnitude spectrum expressed as a function of frequency in hertz, its quefrency coordinate has units of time. A repeated pattern across frequency can consequently appear at the corresponding reciprocal spacing on the quefrency axis.[ref]
For an -point discrete Fourier transform with sampling rate , bin spacing is . The inverse-transform coordinate at index has quefrency
With , index 40 represents . An ideal echo delayed by 40 samples generates spectral ripples spaced by and a cepstrum contribution at that delay, with further contributions at its multiples. The cepstrum's real-valued convention can also produce mirrored peaks at negative quefrencies.
A quefrency peak is therefore not a -period oscillation of the original waveform by definition. Depending on the signal, it might reflect an echo or a fundamental frequency near . Interpretation requires a model of how the spectral repetition arose.