DSPro
Newbie level 4
- Joined
- Dec 28, 2013
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 84
Hey,
I am new here, and currently trying to work my way through the "The Scientist and Engineer's Guide to Digital Signal Processing" by Smith. There is one question that keeps bugging me about this whole FFT thing, and I think it's elementary in understanding it. I don't ever intend to be a coder or mathematician, but I want to understand these things in general.
So my question relates to the difference between DFT, and DTFT. As far as I understand the DTFT is DFT which is just padded by infinite amount of samples with 0 amplitude, instead of the periodic signal repeating infinitely. Both of these should represent the original sample EXACTLY, at least if you use rectangular window on DFT-
Now, consider a sine wave with a single cycle, and consider that our period being sampled is that same exact single cycle of sine wave. DFT of the infinte periodic sine wave is going to be one occupied bin or one sine wave, no problems here. However DFTF of the now aperiodic sine wave can't possibly be only a single occupied bin since there is now bunch of silence that also needs to be reconstructed. In this type of fashion:
(infinite silence)________________________________ (One cycle sine wave) ___________________________(Infinite silence). That can't possibly be represented by single bin, as otherwise you would have an infinite sine wave, right?
This also becomes obvious if you consider a dirac delta function, if you take the DFT with 2 samples in it it will look like high frequency sine wave, the DTFT on the other hand would be the noise burst. As you increase the padding it will start to resemble the noise burst more and more.
The problem is I always thought that the zero padding just added definition to the DTFT. The other problem I have is that I thought that the sine waves actually represented something you could hear and that sine waves of one frequency could not be cancelled by sines of other frequency. Obviously in the DTFT case the infinite sine waves of different frequencies have to be added to create the silence and then the single cycle of sine wave in the middle of it... Am I completely offbase here?
By the way I actually generated the sine wave example above. First of all, the one cycle of sine wave sounds nothing like a sine wave, if I use FFT with some padding, the frequencies do seem to be all over the place.
I also generated an example where a sine of couple of cycles plays, still padded with silence. It sounds like a sine, but there is always the sound of an attack and release there, that isn't sinelike. The FFT is far from sine wave. (The sine waves starts and ends at zero phase, so they are perfect in that sense).
Ok, I am sidetracking a bit here, anyway to summaraize, here are the questions I basically have:
#1 The DTFT is not simply an increase in resolution over DFT, but instead could change the frequencies present radically. The signal at the sampled period will remain the exactly the same as one would expect though. Correct?
#2 Can frequencies be cancelled in DTFT by other frequencies to produce silence?
#3 What is it that I actually hear when a sine wave of one cycle is played, surrounded by silence? I don't have infinite time to wait for it, but nor is it continuous as it is surrounded by silence. Is FFT terrible at representing the actual frequencies we hear, even if we account for the nonlinear nature of our hearing?
Thanks a lot.
I am new here, and currently trying to work my way through the "The Scientist and Engineer's Guide to Digital Signal Processing" by Smith. There is one question that keeps bugging me about this whole FFT thing, and I think it's elementary in understanding it. I don't ever intend to be a coder or mathematician, but I want to understand these things in general.
So my question relates to the difference between DFT, and DTFT. As far as I understand the DTFT is DFT which is just padded by infinite amount of samples with 0 amplitude, instead of the periodic signal repeating infinitely. Both of these should represent the original sample EXACTLY, at least if you use rectangular window on DFT-
Now, consider a sine wave with a single cycle, and consider that our period being sampled is that same exact single cycle of sine wave. DFT of the infinte periodic sine wave is going to be one occupied bin or one sine wave, no problems here. However DFTF of the now aperiodic sine wave can't possibly be only a single occupied bin since there is now bunch of silence that also needs to be reconstructed. In this type of fashion:
(infinite silence)________________________________ (One cycle sine wave) ___________________________(Infinite silence). That can't possibly be represented by single bin, as otherwise you would have an infinite sine wave, right?
This also becomes obvious if you consider a dirac delta function, if you take the DFT with 2 samples in it it will look like high frequency sine wave, the DTFT on the other hand would be the noise burst. As you increase the padding it will start to resemble the noise burst more and more.
The problem is I always thought that the zero padding just added definition to the DTFT. The other problem I have is that I thought that the sine waves actually represented something you could hear and that sine waves of one frequency could not be cancelled by sines of other frequency. Obviously in the DTFT case the infinite sine waves of different frequencies have to be added to create the silence and then the single cycle of sine wave in the middle of it... Am I completely offbase here?
By the way I actually generated the sine wave example above. First of all, the one cycle of sine wave sounds nothing like a sine wave, if I use FFT with some padding, the frequencies do seem to be all over the place.
I also generated an example where a sine of couple of cycles plays, still padded with silence. It sounds like a sine, but there is always the sound of an attack and release there, that isn't sinelike. The FFT is far from sine wave. (The sine waves starts and ends at zero phase, so they are perfect in that sense).
Ok, I am sidetracking a bit here, anyway to summaraize, here are the questions I basically have:
#1 The DTFT is not simply an increase in resolution over DFT, but instead could change the frequencies present radically. The signal at the sampled period will remain the exactly the same as one would expect though. Correct?
#2 Can frequencies be cancelled in DTFT by other frequencies to produce silence?
#3 What is it that I actually hear when a sine wave of one cycle is played, surrounded by silence? I don't have infinite time to wait for it, but nor is it continuous as it is surrounded by silence. Is FFT terrible at representing the actual frequencies we hear, even if we account for the nonlinear nature of our hearing?
Thanks a lot.
Last edited: