JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 37
  • Score
    100M100P100Q63588F
  • License MIT

Piano keys frequencies

Package Exports

  • piano-key

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (piano-key) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Piano-key Build Status Code Climate unstable

Tools for working with piano keys and frequencies.

npm install piano-key

var key = require('piano-key');

key.getName(49);				//A4
key.getFrequency(49);			//440
key.getFrequency('A4');			//440
key.getNumber('A4');			//49
key.getNumber(440);				//49
key.getOctave(49);				//4
key.getNote(50);				//A#
key.getNote('A#4');				//A#

key.isBlack(49);				//false
key.isBlack(48);				//true