I had some problems with scalloping and spectral leakage. I think I solved that.
I wrote an algorithm in C++ using FFTW3. It works. But now I want to show when you get scalloping.
It took me some time to really understand what is going on. To understand that a rectangular window has a sinc function as the DFT. And that you can have the bins of the sinc function at zero if you have integer numbers of periods in the window.
I read the Harris paper and it helped.
So I try to create a pure sine with certain sampling frequency and a certain window size to create scalloping. I can get leakage, but only the Eiffel Tower effect/leakage skirt. Shouldn't I get the most scalloping when there are 1.5 periods in a window?
For example, in this pdf: http://m.eet.com/media/1051177/Windowing_pt1_Carnes.pdf
I want to get something as shown in figure 1, but all I get is something like figure 4. I do not understand the difference between scalloping and Eiffel tower effect and this causes me to not be able to accurately show how windowing function helps.
Are they all secretly using zero-padding? Or you get scalloping only with infinitely high resolution? I don't get it. What dataset do I DFT to get extreme scalloping? Ill try it with matlab and my algorithm. But I can't generate it myself.