Caution
You're reading the documentation for a development version. For the latest released version, please have a look at 0.9.1.
librosa.octs_to_hz¶
- librosa.octs_to_hz(octs, *, tuning=0.0, bins_per_octave=12)[source]¶
Convert octaves numbers to frequencies.
Octaves are counted relative to A.
- Parameters
- octsnp.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.
- 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. ])