How a CD player works - HW8

From Class Wiki
Revision as of 12:03, 29 October 2009 by Max.Woesner (talk | contribs)
Jump to navigation Jump to search

Max Woesner

Back to my Home Page

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.
X continuous2.jpg
In the frequency domain, the signal looks like this.
X frequency1a.jpg
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 . 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.
X discrete.jpg
In the frequency domain, the function can be expressed either as or and would look like this.
X frequency2.jpg
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 8x oversampling, creating a digital filter.

To do this, we want to convolve our discrete function by a new function 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.
X discrete.jpg
The frequency response of this is , which looks like this.
X frequency3.jpg
The convolution of our discrete function and can be expressed mathematically as



Let , so , so



Let us define as the function , so

. It would look something like this.
X discrete.jpg
The frequency equivalent would be . It can also be expressed as
, or

This is what it would look like.
X frequency4a.jpg

This pre-emphasis exaggerates the high frequencies so that when the signal goes through the rest of the processing everything is "perfect."
Now we are ready to convolve our function with a function , which is done by the D/A converter in a CD player.

and would look like this

P t.jpg

The convolution look like this:

This convolution gives us a step function, such as the one below.
X step.jpg
The frequency equivalent of , or , can be expressed as and will look something like this.
P f.jpg

Since the equivalent to convolution in time is multiplication in frequency, we will multiply by , or
. It would look like this.
X frequency5.jpg

Now we can simply run the signal through a low pass filter and send it to the speakers for playback.
In the time domain, the low pass filter, , might look like this.
Lowpass g t.jpg

The frequency response, , would look something like this.
Lowpass G f.jpg

And that is probably more than you ever wanted to know about how a CD player works.