Skip to content

A list of all the instruments according to midi spec.

Notifications You must be signed in to change notification settings

ritz078/midi-instruments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages

No packages published