Skip to content

@liminal-hq/undertone / noteToMidi

Function: noteToMidi()

noteToMidi(name): number

Defined in: pitch.ts:14

Converts a note name ("c2", "a4", "f#3", "bb3") to a MIDI note number using scientific pitch notation (C4 = MIDI 60).

Parameters

name

string

Returns

number