Closed mllocs closed 10 years ago
Hi @mllocs.
You're right, that since we have the fromMIDI
it would be understandable to implement the note.midi()
. However, recently I've begun disliking all the sugar functions of the library, and both to- and from MIDI are just that, since they're equal to note.key() + 20
.
I'm working with some different ideas on where teoria
is going, but I don't think it's a good idea to have more sugar than already. You can always extend the TeoriaNote.prototype
.
Thank you for the suggestion nonetheless :)
Since we have
teoria.note.fromKey()
,note.key()
andteoria.note.fromMIDI()
it would be nice to havenote.midi()
. I can PR If you think that's a good idea.