8 - 1x oversampling: Difference between revisions
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
and <math> \frac{1}{T}\sum_{n=-\infty}^\infty X(f - \frac{n}{T})</math> in the frequency domain. <br><br> |
and <math> \frac{1}{T}\sum_{n=-\infty}^\infty X(f - \frac{n}{T})</math> in the frequency domain. <br><br> |
||
Now that we have the data in the computer we want to convolve it with another impulse function <math> \sum_{m=-M}^M h(\frac{mT}{n})\delta(t-\frac{mT}{n})</math> 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 <math> \sum_{m=-M}^M h(\frac{mT}{n})e^{-j2\pi fm\frac{T}{n}} </math> to multiply by so our frequency won't overlap later and help compensate for losses in the D/A converter. Example the frequency function is. <br><br> |
Now that we have the data in the computer we want to convolve it with another impulse function <math> \sum_{m=-M}^M h(\frac{mT}{n})\delta(t-\frac{mT}{n})</math> 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 <math> \sum_{m=-M}^M h(\frac{mT}{n})e^{-j2\pi fm\frac{T}{n}} </math> 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. <br><br> |
||
<math> \sum_{m=-M}^M h(\frac{mT}{n})e^{-j2\pi fm\frac{T}{n}} \Longrightarrow </math> [[Image:x_frequency3a.jpg]]<br> |
<math> \sum_{m=-M}^M h(\frac{mT}{n})e^{-j2\pi fm\frac{T}{n}} \Longrightarrow </math> [[Image:x_frequency3a.jpg]]<br> |
||
Line 20: | Line 20: | ||
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 <br> |
|||
⚫ | |||
And in frequency |
|||
[[Image:x_frequency4a.jpg|thumb|none|]]x[[Image:P_f.jpg|thumb|none|]]=[[Image:x_frequency2a.jpg|thumb|none|]]<br> |
|||
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. <br><br> |
|||
⚫ | |||
example time domain low-pass filter<br> |
|||
⚫ | |||
> |
|||
[[Image:x_frequency4a.jpg]]<br><br> |
|||
[[Image: |
[[Image:lowpass_g_t.jpg]]<br> |
||
example frequency domain low-pass filter<br> |
|||
[[Image:x_step.jpg]]<br> |
|||
⚫ | |||
[[Image:P_f.jpg]]<br><br> |
|||
[[Image:x_frequency5.jpg]]<br><br> |
|||
[[Image:lowpass_g_t.jpg]]<br><br> |
|||
[[Image:lowpass_G_f.jpg]]<br><br> |
Revision as of 20:29, 8 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
Sample
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.
Now doing the convolution/multiplication yields.
The time domain stays the same with
But frequency
x
=
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
*=
And in frequency
x
=
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