mudcube / MIDI.js

:musical_keyboard: Making life easy to create a MIDI-app on the web. Includes a library to program synesthesia into your app for memory recognition or for creating trippy effects. Convert soundfonts for Guitar, Bass, Drums, ect. into code that can be read by the browser. Supports multiple simultaneous instruments and perfect timing.

Home Page:http://mudcu.be/midi-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Acoustic Gran Piano Sound Font Order

raul4740 opened this issue · comments

Im trying to find put the note numbers for each font file for example.
A0 = ??
A1 = ??
...
and so on. I´m trying to create some songs but i need to see which note is which.

There are already inbuilt functions available for this conversion.

MIDI.keyToNote = object; // A0 => 21
MIDI.noteToKey = object; // 21 => A0

Usage :

alert(MIDI.keyToNote["A0"]);   // A0 => 21
alert(MIDI.noteToKey[21]);    // 21 => A0