fromMidi
is a tiny function (231 bytes minified) to get the note name from a midi number (using MIDI Tuning Standard where 'A4' is midi number 69):
var fromMidi = require('music.note.from-midi')
fromMidi('69') // => 'A4'
fromMidi('36') // => 'C2'
This is part of music.kit
Install via npm: npm install --save music.note.from-midi
and require it.
MIT License