librosa.filters.mr_frequencies¶
- librosa.filters.mr_frequencies(tuning)[source]¶
Helper function for generating center frequency and sample rate pairs.
This function will return center frequency and corresponding sample rates 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
- tuningfloat [scalar]
Tuning deviation from A440, measure as a fraction of the equally tempered semitone (1/12 of an octave).
- Returns
- center_freqsnp.ndarray [shape=(n,), dtype=float]
Center frequencies of the filter kernels. Also defines the number of filters in the filterbank.
- sample_ratesnp.ndarray [shape=(n,), dtype=float]
Sample rate for each filter, used for multirate filterbank.
See also
Notes
This function caches at level 10.