Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 751 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 751 Bytes

midi-wtf

Find out what fucking instrument or drum note a midi file is referencing. A key value table that turns a midi drum note number into a string representing the instrument.

Usage

Install via NPM

npm install midi-wtf --save

Require the fucking file

var midiWTF = require('midi-wtf');

Midi instrument number into a string and instrument group

midiWtf.instrument(80)

Returns

{ "val": 79, "name": "Ocarina", "group": "Pipe"}

Midi note number to drum note

midiWtf.drum(38)

Returns

Snare Drum 1

Where did the fucking table come from?