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.note_to_hz

librosa.note_to_hz(note, **kwargs)[source]

Convert one or more note names to frequency (Hz)

Parameters
notestr or iterable of str

One or more note names to convert

kwargsadditional keyword arguments

Additional parameters to note_to_midi

Returns
frequenciesnumber or np.ndarray [shape=(len(note),)]

Array of frequencies (in Hz) corresponding to note

Examples

>>> # Get the frequency of a note
>>> librosa.note_to_hz('C')
array([ 16.352])
>>> # Or multiple notes
>>> librosa.note_to_hz(['A3', 'A4', 'A5'])
array([ 220.,  440.,  880.])
>>> # Or notes with tuning deviations
>>> librosa.note_to_hz('C2-32', round_midi=False)
array([ 64.209])