Caution

You're reading the documentation for a development version. For the latest released version, please have a look at 0.10.2.

librosa.set_fftlib

librosa.set_fftlib(lib=None)[source]

Set the FFT library used by librosa.

Warning

This functionality is deprecated in librosa 0.11 and will be removed in 1.0. To achieve the same effect, use either the scipy.fft.set_backend context manager or scipy.fft.set_global_backend function.

Parameters:
libNone or module

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

Examples

Use pyfftw:

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

Reset to default scipy implementation

>>> librosa.set_fftlib()