Home

Awesome

Corda

Corda is a simple JavaScript library for rendering guitar chord symbols. For the time being, it only supports Canvas rendering, but SVG will probably be supported at some time.

Chord symbols can be rendered both with/without name, with/without tuning and with/without fret number, and in all sorts of different sizes/metrics.

Usage

var aminor = Corda.symbol({
  notes: ['x', 'o', 2, 2, 1, 'o']
});

aminor.render(canvasElement);

Renderings

EbMaj9 G Cm7 D

API

Corda

Corda.symbol(object:chordParameters)

Corda.style(string:key, string:val)

Corda.style(object:styleObject)

CordaSymbol(object:chordParameters)

chordParameters is an object that defines the chord symbol, it can have one or more of these parameters:

CordaSymbol#render(DOMElement:canvas)

CordaSymbol#style(...)