index.js
function fromMidi (midi) {
  var name = CHROMATIC[midi % 12]
  var oct = Math.floor(midi / 12) - 1
  return name + oct
}
function fromMidi (midi) {
  var name = CHROMATIC[midi % 12]
  var oct = Math.floor(midi / 12) - 1
  return name + oct
}
function fromMidi ( midi ) { var name = CHROMATIC [ midi % 12 ] var oct = Math . floor ( midi / 12 ) - 1 return name + oct }
Get the pitch of the given midi number

This method doesn't take into account diatonic spelling. Always the same
pitch class is given to the same midi number.

@param {Integer} midi - the midi number
@return {String} the pitch

@example
pitch.fromMidi(69) // => 'A4'
Get the pitch of the given midi number