# piano-key

> Piano keys frequencies

Latest version **2.1.1** (published 2015-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install piano-key
pnpm add piano-key
yarn add piano-key
bun add piano-key
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2015-08-28 |
| First published | 2015-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Deema Ywanov |
| Maintainers | dfcreative |
| Keywords | piano, midi, music, audio |

## Links

- npm: https://www.npmjs.com/package/piano-key
- Repository: https://github.com/dfcreative/piano-keys
- Issues: https://github.com/dfcreative/piano-keys/issues
- npm.io page: https://npm.io/package/piano-key

## Dependencies (1)

- [mumath](https://npm.io/package/mumath.md) ^1.0.2

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.1.1 (latest) — 2015-08-28
- 2.1.0 — 2015-08-22
- 2.0.2 — 2015-07-03
- 2.0.1 — 2015-07-02
- 1.0.1 — 2015-04-26
- 1.0.0 — 2015-04-26

## README

# Piano-key [![Build Status](https://travis-ci.org/dfcreative/piano-key.svg?branch=master)](https://travis-ci.org/dfcreative/piano-key) [![Code Climate](https://codeclimate.com/github/dfcreative/piano-key/badges/gpa.svg)](https://codeclimate.com/github/dfcreative/piano-key) [![unstable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)

Tools for working with [piano keys and frequencies](http://en.wikipedia.org/wiki/Piano_key_frequencies).

[![npm install piano-key](https://nodei.co/npm/piano-key.png?mini=true)](https://nodei.co/npm/piano-key/)


```js
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
```

---
_Source: https://npm.io/package/piano-key · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
