An open API service indexing awesome lists of open source software.

https://github.com/danigb/all-that-chords

A javascript music chords library
https://github.com/danigb/all-that-chords

Last synced: about 1 year ago
JSON representation

A javascript music chords library

Awesome Lists containing this project

README

          

# all-that-chords

A Javascript music chord library:

```js
var Chord = require('all-that-chords');
var chord = Chord('C7');
chord.notes(); // => ['c2', 'e2', 'g2', 'bb2'];
```

This is part on an effort to port of the huge and awesome impro-visor musical database to javascript.

## How it works

It uses a database of chords from impro-visor. Look at `./data` .json files.

## Examples

### Chord properties

```js
chord = Chord('Eb7');
chord.root
chord.name
chord.intervals
```

### Notes and voicings

```js
chord = Chord('A#7b5');
chord.notes();
chord.voicings();
chord.voice('left-hand-A');
```

### scales

```js
chord = Chord('BbMaj9#1');
chord.scales();
```

## License

This library contains parts of [impro-visor](http://www.cs.hmc.edu/~keller/jazz/improvisor/)
so it shares license: GNU Public License 2.0