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.core.octs_to_hz¶
- librosa.core.octs_to_hz(octs, tuning=0.0, bins_per_octave=12, A440=<DEPRECATED parameter>)[source]¶
Convert octaves numbers to frequencies.
Octaves are counted relative to A.
- Parameters
- octavesnp.ndarray [shape=(n,)] or float
octave number for each frequency
- tuningfloat
Tuning deviation from A440 in (fractional) bins per octave.
- bins_per_octaveint > 0
Number of bins per octave.
- A440float <DEPRECATED>
frequency of A440
- Returns
- frequenciesnumber or np.ndarray [shape=(n,)]
scalar or vector of frequencies
See also
Examples
>>> librosa.octs_to_hz(1) 55. >>> librosa.octs_to_hz([-2, -1, 0, 1, 2]) array([ 6.875, 13.75 , 27.5 , 55. , 110. ])