Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 544 Bytes

README.md

File metadata and controls

30 lines (27 loc) · 544 Bytes

guitar-tabs

Simple library to write guitar tabs.

Example

The snippet:

GuitarTabs.init()
    .addNotes(-1,-1,-1,7)
    .addNotes(-1,-1,5)
    .addNotes(-1,5)
    .addNotes(5)
    .addNotes(7,-1,-1,6)
    .addNotes(-1,5)
    .addNotes(-1,-1,5)
    .addNotes(-1,-1,-1,7)
    .addSeparator();

let s = GuitarTabs.getString();
console.log(s);

Generates the following output in the console:

e|-------5-7-------|
B|-----5-----5-----|
G|---5---------5---|
D|-7-------6-----7-|
A|-----------------|
E|-----------------|