Caution

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

Filters

Filter bank construction

mel(*, sr, n_fft[, n_mels, fmin, fmax, htk, ...])

Create a Mel filter-bank.

chroma(*, sr, n_fft[, n_chroma, tuning, ...])

Create a chroma filter bank.

wavelet(*, freqs[, sr, window, ...])

Construct a wavelet basis using windowed complex sinusoids.

semitone_filterbank(*[, center_freqs, ...])

Construct a multi-rate IIR band-pass filter bank at specified center frequencies and sample rates.

Window functions

window_bandwidth(window[, n])

Get the equivalent noise bandwidth (ENBW) of a window function.

get_window(window, Nx, *[, fftbins])

Compute a window function.

Miscellaneous

wavelet_lengths(*, freqs[, sr, window, ...])

Return length of each filter in a wavelet basis.

cq_to_chroma(n_input, *[, bins_per_octave, ...])

Construct a linear transformation matrix to map Constant-Q bins onto chroma bins.

mr_frequencies(tuning)

Generate center frequencies and sample rate pairs.

window_sumsquare(*, window, n_frames[, ...])

Compute the sum-square envelope of a window function at a given hop length.

diagonal_filter(window, n, *[, slope, ...])

Build a two-dimensional diagonal filter.