librosa.filters.mr_frequencies¶
-
librosa.filters.
mr_frequencies
(tuning)[source]¶ Helper function for generating center frequency and samplerate pairs.
This function will return center frequency and corresponding samplerates to obtain similar pitch filterbank settings as described in [1]. (Instead of starting with MIDI pitch A0, we start with C0.)
[1] Müller, Meinard. “Information Retrieval for Music and Motion.” Springer Verlag. 2007. Parameters: - tuning : float in [-0.5, +0.5) [scalar]
Tuning deviation from A440 in fractions of a bin.
Returns: - center_freqs : np.ndarray [shape=(n,), dtype=float]
Center frequencies of the filter kernels. Also defines the number of filters in the filterbank.
- sample_rates : np.ndarray [shape=(n,), dtype=float]
Samplerate for each filter (used for multirate filterbank).
Notes
This function caches at level 10.