note-midi
note-midi
is a tiny function (1kb minified) to get the midi number from a note name:
var midi = // => 69 // => 36
This is part of tonal
Installation
Install via npm: npm install --save note-midi
or use add the dist file to the html page.
API
midi
Get the midi number of a note
The note can be an string in scientific notation or array pitch notation
Parameters
note
String or Array
the note in string or array notation
Examples
// => 69 // => 57 // => 36 (C2 in array notation)
Returns Integer
the midi number
Generated documentation here
License
MIT License