ritz078 / midi-instruments

A list of all the instruments according to midi spec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A list of all the instruments according to midi spec.


Languages

Language:TypeScript 100.0%