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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i pitch-class

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • danigb