1.0.2 • Published 7 years ago

tabwriter v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

TabWriter

With TabWriter it is easy to create your own guitar tabs from JavaScript objects.

Installation

npm install tabwriter

Data

TabWriter takes an array of "note"-objects as input. An example of such an array would be

const notes = [
    {
        string: 0, // 0 is the low E string
        fret: 1, // 0 would be open string,
        beat: 1 // first beat of first bar
    },
    {
        string: 0,
        fret: 4,
        beat: 2
    },
    {
        string: 1,
        fret: 4,
        beat: 2
    }
]

Usage

var createTab = require('tabwriter');

createTab(notes)
/*
[ 'e|-------|',
  'B|-------|',
  'G|-------|',
  'D|-------|',
  'A|----4--|',
  'E|--1-4--|' ]
*/
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago