CPJKU/madmom

Window function in FramedSignalProcessor?

shreyanc opened this issue · 2 comments

I can't seem to find a way to specify a windowing function in madmom. Is this a deliberate choice? (As a contrast, librosa allows this).

madmom.audio.stft.stft() has a window argument, which takes a window array.
madmom.audio.stft.ShortTimeFourierTransform additionally takes a callable function (e.g. np.hamming) for the same argument.

You can pass this argument to any class higher in the hierarchy (e.g. all sorts of spectrogram classes).

That clears it up. Thanks a lot!