Tablature in, notes out.
| Install | npm install keyjockey |
|---|---|
| Licence | MIT |
| Tunings | 8, with capo offsets |
| Source | vince-gonzalez/f-keys |
Reads guitar tablature and converts notes. Eight tunings, capo offsets, MIDI and frequency.
npm install keyjockey
keyjockey.parseTab(tab, "Standard (EADGBe)", 0).notes;
keyjockey.parseTab(tab, "Drop D", 2).notes; // capo 2
keyjockey.midiToName(60); // "C4"
keyjockey.nameToFreq("A4"); // 440
This is the same reader Key-J runs in the browser, and
the Python half is on PyPI as keyj. The npm package is generated
from app.html at build time rather than written a third time, and
the build fails if the app moves and the package does not.
Key-J has already shipped three defects that existed only because two copies of one thing drifted. A third copy would have been a third chance.
A tab in a tuning that does not exist returns .error and no
notes. Text that is not tablature returns zero notes rather than guessing at
one.