Get the note midi number (a number between 0 and 127)
It returns undefined if not valid note name
the note name or midi number
the midi number or undefined if not valid note
import { toMidi } from '../midi'toMidi("C4") // => 60toMidi(60) // => 60toMidi('60') // => 60 Copy
import { toMidi } from '../midi'toMidi("C4") // => 60toMidi(60) // => 60toMidi('60') // => 60
Get the note midi number (a number between 0 and 127)
It returns undefined if not valid note name