National Preventative Mechanism

    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

    Install

    npm i pitch-class

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar