]> git.cworth.org Git - scherzo/commit
Use matched chord signature to guide spelling of note on staff.
authorCarl Worth <cworth@cworth.org>
Fri, 27 Sep 2013 15:24:53 +0000 (08:24 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 27 Sep 2013 15:24:53 +0000 (08:24 -0700)
commitf0c5237be2f92b640c7f7ba619cb7c1d8e4a1538
tree44c7f69a4056dde5cab8c66f56c30d7434328e7a
parent6b19e8f30b220108844da0e6d8d97d9684b2feb9
Use matched chord signature to guide spelling of note on staff.

We now use the chord's signature to choose the correct spelling of
each enharmonic note. For example, an A mjor triad has a C-sharp in
it, not a D-flat. We can determine this since a major triad should
have a note of the 3 scale degree (as recorded in the chord
signature).

Still to be done is to draw note heads without collision, draw
accidentals without collision, and to improve the heuristic for
deciding between ambiguous chord signatures.
scherzo.c
score.c