1.0.0 • Published 9 years ago

teoria-simplify-note v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

teoria-simplify-note

This module "simplifies" a note, to an enharmonic note with fewer accidentals. E.g.:

var teoria = require('teoria');
var simplify = require('teoria-simplify-note');

console.log(simplify(teoria.note('Fb'))); // -> TeoriaNote('E');
console.log(simplify(teoria.note('B#'))); // -> TeoriaNote('C');
console.log(simplify(teoria.note('Abb'))) // -> TeoriaNote('G');

methods

var simplify = require('teoria-simplify-note');

var simplenote = simplify(TeoriaNote)

simplenote is now the enharmonic of TeoriaNote with the fewest accidentals.