r***@gmail.com
2020-07-06 15:04:20 UTC
I ran across a problem in a DSP book that got me to thinking (the best kind of problem). The author suggests that we can illustrate aliasing by sampling an audio signal at a high frequency and then replacing samples with zeroes to get a lower effective sampling frequency. For example, if we sample at fs1 = 32 kHz and then keep every M = 4th sample (replacing the other samples with zeroes) then the resulting signal is equivalent to sampling at fs2 = 8 kHz (fs1/M).
I agree that aliasing is present (if the original signal has content above 4 kHz), but if you play the new signal back at 32 kHz you will also hear "replica" distortion. To get a better sense of just aliasing due to sampling at 8 kHz you should low pass filter the new signal with a cutoff frequency of 4 kHz (fs2/2 or fs1/(2M)).
The process appears to be the same as down-sampling (without an anti-aliasing filter, since the goal is to demonstrate aliasing) followed by up-sampling at the same rate. I think you still need to follow the up-sampler with a low-pass (replica elimination) filter to generate a signal that when played back at 32 kHz sounds the same as sampling (and replaying) the original analog signal at 8 kHz (without using an anti-aliasing filter).
Note: I am not arguing that the author is wrong. I am just looking for verification that my thinking is correct (or not). The problem is presented very early in the book (and it is a very good book) before filtering is even discussed. He says that this zero-replacement method will illustrate distortion due to aliasing. He does not say that it is exactly equivalent to the signal that would be obtained by sampling at the lower rate without an anti-aliasing filter. It just got me to thinking about a better way (perhaps) to demonstrate only aliasing.
Tony
I agree that aliasing is present (if the original signal has content above 4 kHz), but if you play the new signal back at 32 kHz you will also hear "replica" distortion. To get a better sense of just aliasing due to sampling at 8 kHz you should low pass filter the new signal with a cutoff frequency of 4 kHz (fs2/2 or fs1/(2M)).
The process appears to be the same as down-sampling (without an anti-aliasing filter, since the goal is to demonstrate aliasing) followed by up-sampling at the same rate. I think you still need to follow the up-sampler with a low-pass (replica elimination) filter to generate a signal that when played back at 32 kHz sounds the same as sampling (and replaying) the original analog signal at 8 kHz (without using an anti-aliasing filter).
Note: I am not arguing that the author is wrong. I am just looking for verification that my thinking is correct (or not). The problem is presented very early in the book (and it is a very good book) before filtering is even discussed. He says that this zero-replacement method will illustrate distortion due to aliasing. He does not say that it is exactly equivalent to the signal that would be obtained by sampling at the lower rate without an anti-aliasing filter. It just got me to thinking about a better way (perhaps) to demonstrate only aliasing.
Tony