8 - 1x oversampling: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 34: Line 34:
[[Image:lowpass_G_f.jpg]]<br>
[[Image:lowpass_G_f.jpg]]<br>

Pictures form Max's page which he made from the notes in class<br>
Thanks Max! =D

Latest revision as of 15:38, 9 November 2009

Write a section on the Wiki about how a CD player works with no oversampling, but digital filtering (1x oversampling)

First we sample the data at to get the data in digital form and when you use the impulse function in time the frequency repeats forever as shown

X continuous3.jpg X discrete a.jpg

                                 Sample 

X frequency1b.jpg X frequency2a.jpg

Where the impulse function with respect to time =
and in the frequency domain.

Now that we have the data in the computer we want to convolve it with another impulse function in the time domain. This is where more that 1x oversampling would occur replace n for nx oversampling, but in our case we use n = 1. Doing this convolution we can also shape our frequency when you convolve in time it multiplies in frequency. So we pick a frequency function to multiply by so our frequency won't overlap later and help compensate for losses in high frequencies from the D/A converter and low-pass filter. Example the frequency function is.

X frequency3a.jpg

Now doing the convolution/multiplication yields.
The time domain stays the same with X discrete a.jpg

But frequency

X frequency2a.jpg

x

X frequency3a.jpg

=

X frequency4a.jpg




Now it is time to convolve our time function with a pulse function p(t) and thereby multiply our frequency by its pulse equivalent P(f) = Tsin(fT) giving us
X discrete a.jpg*P t.jpg=X step.jpg
And in frequency

X frequency4a.jpg

x

P f.jpg

=

X frequency2a.jpg


Notice that by pre-emphasizing the high frequencies we get close to what the original function was in the frequency domain. Now the last step before sending the data out to speakers we convolve the time domain function with a simple low-pass filter to smooth the edges of the function and bring the frequency function even closer to its original state giving us a final beautiful sound through our speakers.

example time domain low-pass filter

Lowpass g t.jpg
example frequency domain low-pass filter

Lowpass G f.jpg

Pictures form Max's page which he made from the notes in class
Thanks Max! =D