# midi-instruments

> A list of all the instruments used in midi file.

Latest version **1.1.4** (published 2019-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install midi-instruments
pnpm add midi-instruments
yarn add midi-instruments
bun add midi-instruments
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2019-06-19 |
| First published | 2018-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 84 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ritesh Kumar |
| Maintainers | ritz078 |

## Links

- npm: https://www.npmjs.com/package/midi-instruments
- Repository: https://github.com/ritz078/midi-instruments
- Homepage: https://github.com/ritz078/midi-instruments#readme
- Issues: https://github.com/ritz078/midi-instruments/issues
- npm.io page: https://npm.io/package/midi-instruments

## Dependencies (1)

- [just-values](https://npm.io/package/just-values.md) ^1.1.0

## Recent versions

- 1.1.4 (latest) — 2019-06-19
- 1.1.3 — 2019-06-19
- 1.1.1 — 2018-11-04
- 1.1.0 — 2018-11-04
- 1.0.5 — 2018-11-04
- 1.0.3 — 2018-09-20
- 1.0.2 — 2018-09-20
- 1.0.1 — 2018-09-20
- 1.0.0 — 2018-09-20

## README

# midi-instruments

A list of instruments according to midi spec.

## Installation
```
yarn add midi-instruments
```

## Usage
```js
import { 
  instruments, 
  getInstrumentById,
  getInstrumentByName,
  getInstrumentNames
} from "midi-instruments"

console.log(instruments) // An object of all the instruments where the key is the instrumentId.

console.log(getInstrumentById(1))
/* {
    "name": "Acoustic Grand Piano",
    "group": "Piano",
    "value": "acoustic_grand_piano"
  } */

console.log(getInstrumentByName("Acoustic Grand Piano"))
/* {
    "name": "Acoustic Grand Piano",
    "group": "Piano",
    "value": "acoustic_grand_piano"
  } */

console.log(getInstrumentNames())
// ["Acoustic Grand Piano", "Bright Acoustic Piano", ...]
```

## License 
MIT

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