pitch-class
v1.0.1
Published
Get pitch class of a note or midi number
Downloads
3
Maintainers
Readme
pitch-class
Get the pitch class of a note:
var pc = require('pitch-class')
pc('a4') // => 'A'
pc('fx3') // => 'F##'
It works with midi numbers too:
pc(57) // => 'A'
This is part of tonal:
tonal.pitchClass('bb2') // => 'Bb'
License
MIT License