librosa.filters.window_bandwidth

librosa.filters.window_bandwidth(window, default=1.0)[source]

Get the bandwidth of a window function.

If the window function is unknown, return a default value.

Parameters:

window : callable or string

A window function, or the name of a window function. Examples: - scipy.signal.hann - ‘boxcar’

default : float >= 0

The default value, if window is unknown.

Returns:

bandwidth : float

The bandwidth of the given window function

See also

scipy.signal.get_window