node package manager

midi-keys

midi-keys

Map note names to MIDI note numbers.

Installation

Get it:

$ npm install --save midi-keys

Require it:

var key = require('midi-keys');

API

key(note)

Return the MIDI key number for note.

Note names are expressed as an uppercase letter (A-G), an optional sharp (#) or flat (b) modifier, then an octave number. Examples: C3, Bb2, F#4, C-2.

Copyright & License

© 2015 Jason Frame [ @jaz303 / jason@onehackoranother.com ]

Released under the ISC license.