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.filters.constant_q_lengths¶
- librosa.filters.constant_q_lengths(sr, fmin, n_bins=84, bins_per_octave=12, tuning=<DEPRECATED parameter>, window='hann', filter_scale=1)[source]¶
Return length of each filter in a constant-Q basis.
- Parameters
- srnumber > 0 [scalar]
Audio sampling rate
- fminfloat > 0 [scalar]
Minimum frequency bin.
- n_binsint > 0 [scalar]
Number of frequencies. Defaults to 7 octaves (84 bins).
- bins_per_octaveint > 0 [scalar]
Number of bins per octave
- tuningfloat [scalar] <DEPRECATED>
Tuning deviation from A440 in fractions of a bin
Note
This parameter is deprecated in 0.7.1. It will be removed in version 0.8.
- windowstr or callable
Window function to use on filters
- filter_scalefloat > 0 [scalar]
Resolution of filter windows. Larger values use longer windows.
- Returns
- lengthsnp.ndarray
The length of each filter.
See also
Notes
This function caches at level 10.