pitch-class

1.0.1 • Public • Published

pitch-class npm version

tonal

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

Package Sidebar

Install

npm i pitch-class

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • danigb