Skip to content

Class for drawing SVG flexible chord charts for stringed instruments.

License

Notifications You must be signed in to change notification settings

Attibee/Lyre-Fretboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyre Fretboard

Create configurable SVG chord charts for stringed instruments.

Installation

npm install @lyre/fretboard

Usage

var Fretboard = require('@lyre/fretboard');

var myFretboard = new Fretboard({
    container: "myContainerId",
    strings: 6,
    frets: 5,
    showFretLabels: true,
    tuning: ['E', 'A', 'D', 'G', 'B', 'e'],

    //F chord
    fingering: [
        {
            string: [1, 6],
            fret: 1,
            finger: 1
        },
        {
            string: 3,
            fret: 2,
            finger: 2
        },
        {
            string: 4,
            fret: 3,
            finger: 4
        },
        {
            string: 5,
            fret: 3,
            finger: 3
        } 
    ]
});

Output

Example code output

About

Class for drawing SVG flexible chord charts for stringed instruments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published