Caution

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

librosa.filters.mr_frequencies

librosa.filters.mr_frequencies(tuning)[source]

Generate center frequencies 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.

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.

Notes

This function caches at level 10.