next up previous contents index
Next: Sneaky triangle waves Up: Predicting and controlling foldover Previous: Predicting and controlling foldover   Contents   Index

Over-sampling

As a first line of defense against foldover, we can synthesize the waveform at a much higher sample rate, apply a low-pass filter whose cutoff frequency is set to the Nyquist frequency (for the original sample rate), then down-sample. For example, in the above scenario (44100 sample rate, 440 Hertz tone) we could generate the sawtooth at a sample rate of $16\cdot 44100 =
705600$ Hertz. We need only worry about frequencies in excess of $705600-20000=685600$ Hertz (so that they fold over into audible frequencies; foldover to ultrasonic frequencies normally won't concern us) so the first problematic partial is $685600/440=1558$, whose amplitude is -64dB relative to that of the fundamental.

Figure 10.8: Magnitude spectrum of a triangle wave with $M/N=0.03$. The two line segments show $1/k$ and $1/{k^2}$ behavior at low and high frequencies.
\begin{figure}\psfig{file=figs/fig10.08.ps}\end{figure}

This attenuation degrades by 6 dB for every octave the fundamental is raised, so that a 10 kHz. sawtooth only enjoys a 37 dB drop from the fundamental to the loudest foldover partial. On the other hand, raising the sample rate by an additional factor of two reduces foldover by the same amount. If we really wish to get 60 decibels of foldover rejection--all the way up to a 10 kHz. fundamental--we will have to over-sample by a factor of 256, to a sample rate of about 11 million Hertz.


next up previous contents index
Next: Sneaky triangle waves Up: Predicting and controlling foldover Previous: Predicting and controlling foldover   Contents   Index
Miller Puckette 2006-12-30