]> git.cworth.org Git - scherzo/commit
Spell input notes according to key
authorCarl Worth <cworth@cworth.org>
Tue, 1 Oct 2013 17:36:58 +0000 (10:36 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 3 Oct 2013 17:50:55 +0000 (10:50 -0700)
commit5b1797d26aff3a1b2f0cbe83583496b42abcd056
tree15b46fd83a4cd51d7b2a21e8591261bbc4324703
parent45d36bd8372f38186ceebf74b48f1a67bd67c573
Spell input notes according to key

Previously, scherzo always preferred the sharp form of any note
pressed on the keyboard. Now, it uses the key to resolve any ambiguous
spellings of notes pressed.

This also means that chord spellings will now fit the key much more
nicely. (For example, in the key of F major, one will now see a Bb
major triad, rather than the very-odd-looking A# major triad).
pitch.c
pitch.h
scherzo-key.c
scherzo-key.h
scherzo.c