1.0.0 • Published 9 years ago

scale-names v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

scale-names

A list of musical scales. See all.json or common.json

Usage

Install the module: npm install --save scale-names and require the module AND the dictionary:

var dictionary = require('scale-names/all.json');
var Names = require('scale-names')(dictionary);

Then, you can get the scale names of a scale number:

Names.get(2773); // => ['major', 'ionian']

Names.get() always returns an array even if its empty.

or get the number of the given name:

Names.getNumber('major'); // => 2773

If you don't know what this numbers are, take a look at 2048-scales

License

MIT