midi-instruments
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

midi-instruments

A list of instruments according to midi spec.

Installation

yarn add midi-instruments

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i midi-instruments

Weekly Downloads

0

Version

1.1.4

License

MIT

Unpacked Size

86 kB

Total Files

9

Last publish

Collaborators

  • ritz078