Skip to content

@liminal-hq/undertone / noteToFrequency

Function: noteToFrequency()

noteToFrequency(pitch): number

Defined in: pitch.ts:37

Converts a note name ("c2", "a4", "f#3", "bb3") to Hz using scientific pitch notation (C4 = MIDI 60, A4 = 440Hz). Numbers pass through unchanged as raw Hz.

Parameters

pitch

string | number

Returns

number