0.0.1 • Published 4 years ago

negative-harmony v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

negative-harmony

Super small library to find the "🌘 negative side" of notes and chords according to a given key.

For the related music theory check here.

Install

$ npm install negative-harmony --save

Usage

const {negativeHarmony} = require ('negative-harmony');

// or with ES6
import {negativeHarmony} from 'negative-harmony';

// Want to find the relative of Gm7b5 ??
console.log(negativeHarmony('C', ["G", "Bb", "Db", "F"]));
/* 
    Result is:
    {
        result: [ 'C', 'A', 'F#', 'D' ],
        chord: [ 'D7/C' ] 
    }
*/

Development

$ npm run dev

# for testing
$ npm test
# for testing while watching file changes
$ npm run watch:test

License

This project is licensed under the MIT License.

Built With