scale-names

1.0.0 • Public • Published

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

/scale-names/

    Package Sidebar

    Install

    npm i scale-names

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • danigb