teoria-simplify-note
v1.0.0
Published
Simplifies (if possible) a note. Fb -> E
Downloads
10
Maintainers
Readme
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.