CDPlayerJEW: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 17: Line 17:
Then, the discrete signal is convolved by the D/A converter with a function <math>p(t)</math>:
Then, the discrete signal is convolved by the D/A converter with a function <math>p(t)</math>:


<center><math>p(t) = u(t+\frac{T}{2}) - u(t-\frac{T}{2})</math></center>
<center><math>p(t) = u \left (t+\frac{T}{2} \right) - u \left (t-\frac{T}{2} \right)</math></center>




Line 51: Line 51:
<center><math>x(t)*h(t) = \sum_{n=-\infty}^\infty x(nT) \delta (t-nT) * \sum_{m=-M}^M h \left (\frac{mT}{2} \right) \delta \left (t - \frac{mT}{2} \right) </math></center>
<center><math>x(t)*h(t) = \sum_{n=-\infty}^\infty x(nT) \delta (t-nT) * \sum_{m=-M}^M h \left (\frac{mT}{2} \right) \delta \left (t - \frac{mT}{2} \right) </math></center>


<center><math>= \hat y (t) = \sum_{l=-\infty}^\infty \left ( \sum_{m=-M}^M x \left (\frac{l-m}{2} T \right) h \left(\frac{mT}{2} \right) \right) \delta \left (t - \frac{lT}{2} \right)
<center><math>
= \hat y (t) = \sum_{l=-\infty}^\infty \left ( \sum_{m=-M}^M x \left (\frac{l-m}{2} T \right) h \left(\frac{mT}{2} \right) \right) \delta \left (t - \frac{lT}{2} \right)
</math></center>
</math></center>


<math>h(t)</math> effectively fills in the gaps by taking the average of two adjacent data points and placing a data point, whose value is the average of it's two adjacent points, half way in between.

This process can be extended to cover 4, 8, 16 or higher oversampling. The result is a smoother stepped function (in the time domain) and a frequency function that looks more and more like the original signal.





Line 59: Line 64:


- Image of CD Player Diagram and Convolution by Aric Goe or Todd Caswell (not sure which since both of them had it on their pages)</small>
- Image of CD Player Diagram and Convolution by Aric Goe or Todd Caswell (not sure which since both of them had it on their pages)</small>

</math>

Latest revision as of 11:22, 6 December 2005

How a CD Player Works

A CD player reads a dicrete set of data off a CD. In short, a CD player takes this data and sends it through a digitla to analog converter, then through a low pass filter, and finally is output through speakers. A simple diagram illustrates this below.


Simple Block Diagram of Signal Pathway


When an audio CD is recorded, the music has an infinite amount of data points and can be represented as a continuous function of time . Because a medium, such as a CD, has a finite amount of space, it will not be able to hold since it has an infinite amount of data. Instead, the music is sampled at intervals to create a discrete function of time where is an integer and is the interval between samples.

This discrete signal can be represented mathematically by:

Then, the discrete signal is convolved by the D/A converter with a function :


This convolution, which is the convolution of the discretized signal and , a pulse function, will yield a graph that is no longer discrete, but is stepped. The following is an example:

Convolved Graph

In the frequency domain, the above stepped signal will look like the following:

Convolution (Time Domain) and it's frequency domain counterpart

It turns out that the frequency graph shown above is very similar to the frequency graph of the original sound signal that was recorded. So, the signal is then sent to the speaker(s) for playback.

2x Oversampling

Some feel that the sound quality of the playback is increased through oversampling. Oversampling requires the signal processor to "fill in" the gaps in the discretized signal thus forming a smoother stepped graph. As noted above, the stepped graph is the result of convolving the discretized sound signal with a pulse function.

In order to perform oversampling, an extra step must be inserted into the process described above. The discretized time signal must be convolved with a function . The resulting convolution will then be convolved with the pulse function . This is the only change in the process.

where is the number of times oversampling desired. In the case of 2x oversampling, and so,

Graphically, this looks like this: File:2x01.jpgFile:2x02.jpg


Mathematically, the equation is:


effectively fills in the gaps by taking the average of two adjacent data points and placing a data point, whose value is the average of it's two adjacent points, half way in between.

This process can be extended to cover 4, 8, 16 or higher oversampling. The result is a smoother stepped function (in the time domain) and a frequency function that looks more and more like the original signal.


- Principle author of this page: Jeffrey Wonoprabowo

- Image of CD Player Diagram and Convolution by Aric Goe or Todd Caswell (not sure which since both of them had it on their pages)