Methods for dealing with MIDI data (note numbers, note names, frequencies, etc).
Install using npm:
npm install midiutils
Then require it before using in your code:
var MIDIUtils = ;MIDIUtils;
You can also download/clone the source. Then just include the source using a
script tag before using the library:
Returns the MIDI note number corresponding to the note
MIDIUtils; // returns 21MIDIUtils; // returns 60
Returns the frequency represented by
MIDIUtils; // returns 440 Hz -- i.e. A-4
Returns the MIDI note name corresponding to the note
MIDIUtils; // returns 'A-0'
Returns the note number that corresponds to this frequency.
MIDIUtils; // returns 69
If you want to get involved with the development of this library or want to contribute, make sure the code you add or change follows the same style as the existing code (whitespace, indenting, etc) and looks consistent with the rest.
Also new features must also be accompanied by both documentation and examples, and new tests demonstrating the usage of the feature, and existing tests must not break.