How a CD player works - HW8
Max Woesner
Homework #8 - How a CD player works
This page describes how a CD player works with no oversampling but with digital filtering, i.e. 1x oversampling.
When music for an audio CD is produced, the music has infinite data points and can be expressed as as a continuous function of time, or , such as the one shown below.
In the frequency domain, the signal looks like this.
Since a CD has a finite amount of storage space, it would be impossible to store on a CD. To solve this problem, the data is sampled at periodic intervals, creating a discrete function of time , where is and integer and is the period between samples.
The sample rate . Aliasing can occur when you don't sample a signal fast enough to be able to reconstruct it accurately after sampling. To make sure this doesn't happen, we must follow Nyquist's theorem, which states that we must sample at a rate at least twice the fastest frequency of the signal we are sampling. Since human hearing can typically range from 20 Hz to 22 kHz, we want to sample at a rate greater than twice the highest frequency, or 44 kHz.
The discrete function of time can be expressed mathematically as . It might look like this.
In the frequency domain, the function can be expressed either as or and would look like this.
Oversampling can be used to create a smoother discrete function by filling in the gaps with more data points. For example, 8x oversampling, which is fairly common, would decrease the sampling period by a factor of eight, giving us a more accurate function of the original signal. For this page, however, we will focus on 1x oversampling. While no additional data points are added with 1x oversampling, the same process can be used as with 2x, 4x, or 8x oversampling by running the signal through a digital filter.
To do this, we want to convolve our discrete function by a standard finite impulse response (FIR) filter we will call .
can be defined as , where is the oversampling rate.
In this case, , so
. Since we are using 1x oversampling, the function won't look any different than the original discrete function.
The frequency response of this is , which looks like this.
The convolution of our discrete function and can be expressed mathematically as
Let , so , and
Let us define as the function , so
. It would look something like this.
Note that is both a discrete convolution sum and a matrix multiply.
The frequency equivalent would be . It can also be expressed as
, or
This is what it would look like.
This pre-emphasis exaggerates the high frequencies so that when the signal goes through the D/A converter and the low pass filter, both of which de-emphasize the high frequencies, the signal coming out will be close to the original signal.
Now we are ready to convolve our function with a pulse function , which is done by the D/A converter in a CD player.
and would look like this
The convolution looks like this:
This convolution gives us a step function, such as the one below.
The frequency equivalent of , or , can be expressed as and will look something like this.
Since the equivalent to convolution in time is multiplication in frequency, we will multiply by , or
. It would look like this.
Now we can simply run the signal through a low pass filter and send it to the speakers for playback.
In the time domain, an RC low pass filter, , might look like this.
In time, we want to convolve our function with the low pass filter, or
The frequency response of the lowpass filter, , would look something like this.
In frequency, we would want to multiply our function with the low pass filter, or
And that is probably more than you ever wanted to know about how a CD player works.