Caution

You're reading an old version of this documentation. If you want up-to-date information, please have a look at 0.9.1.

librosa.set_fftlib

librosa.set_fftlib(lib=None)[source]

Set the FFT library used by librosa.

Parameters
libNone or module

Must implement an interface compatible with numpy.fft. If None, reverts to numpy.fft.

Examples

Use pyfftw:

>>> import pyfftw
>>> librosa.set_fftlib(pyfftw.interfaces.numpy_fft)

Reset to default numpy implementation

>>> librosa.set_fftlib()