I need a way to do an FFT analysis of a (very short) piece of audio, which will give me the spectrum shown in the image and quote below. I'm currently using a Hann window (cosine), which gets close but the top is too wide - it needs to be sharper.
Full story:
I've been searching and trying things for several days now without luck, and I hope someone can help me.
I make a VST plugin for FM radio stations, and in the Netherlands (and apparently nowhere else) there's an ITU recommendation that stations have to comply to: If you measure the FM signal with a spectrum analyzer with specific settings (most importantly Resolution Bandwidth RBW=10 kHz), there's a mask that may not be crossed. The standard is pretty old and it's based on analog spectrum analyzers.
These analog spectrum analyzers work by sweeping through the frequency range and measuring the peak level at each point. Because I need to make sure that my whole signal is compliant, I cannot use a sweep but I must analyse the whole spectrum, constantly.
I'm pretty close to implementing this, but there's one last "detail" that's extremely important for the measurements that I cannot get right: The filter shape.
RBW filters are generally Gaussian in shape, with shape factor (ratio of 60 dB bandwidth to 3 dB bandwidth) of 11:1 ratio.

What I've done so far: FM-modulate the signal (this needs 16x oversampling to have enough room for all the side lobes) and analyse it using FFT's of very short pieces of signal using a Hann window (typically about 60 samples). I use FFT's to keep the CPU usage a bit under control - I need 16x oversampling! But a solution with a bandpass filter that gives the correct filter shape would also be welcome.
The result is close to what a real analog analyzer shows, except for one thing: The filter shape. The top is too wide. I can make the top less wide by increasing the number of samples in the window, but then the bottom isn't wide enough anymore.
In case anyone is interested, the ITU recommendation is ITU-R SM.1268, also known as the "Stokkemask": http://www.itu.int/dms_pubrec/itu-r/rec ... !PDF-E.pdf


