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
- Host: GitHub
- URL: https://github.com/danigb/all-that-chords
- Owner: danigb
- License: gpl-2.0
- Created: 2015-05-12T09:22:24.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T00:59:07.000Z (about 11 years ago)
- Last Synced: 2025-03-25T13:46:33.518Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 207 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
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