negative-harmony
v0.0.1
Published
A function to calculate the negative side of the provided notes
Downloads
2
Maintainers
Readme
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.