librosa.core.octs_to_hz

librosa.core.octs_to_hz(octs, A440=440.0)[source]

Convert octaves numbers to frequencies.

Octaves are counted relative to A.

Parameters:
octaves : np.ndarray [shape=(n,)] or float

octave number for each frequency

A440 : float

frequency of A440

Returns:
frequencies : number or np.ndarray [shape=(n,)]

scalar or vector of frequencies

See also

hz_to_octs

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.   ])