librosa.core.note_to_hz¶
- librosa.core.note_to_hz(note, **kwargs)¶
Convert one or more note names to frequency (Hz)
Parameters: note : str or iterable of str
One or more note names to convert
kwargs : additional keyword arguments
Additional parameters to note_to_midi
Returns: frequencies : np.ndarray [shape=(len(note),)]
Array of frequencies (in Hz) corresponding to note
See also
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])