]> git.notmuchmail.org Git - scherzo/commit
Fix bugs in analysis for out-of-order chords
authorCarl Worth <cworth@cworth.org>
Wed, 18 Sep 2013 03:41:32 +0000 (20:41 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 18 Sep 2013 03:41:32 +0000 (20:41 -0700)
commit1cfc79bb867bfa72e9982b79a65bd353bd120ee9
tree4e7345125bb319a14b7a910c28454d836003f98c
parente1b42d290d7e53d454b6e71e36acc4f10652f186
Fix bugs in analysis for out-of-order chords

When the various notes of a chord were in different octaves, scherzo
was sometimes getting confused and was unable to match the chord to
its known signatures. We fix this by adding a secondary sort, (first
sort by absolute pitch to find bass note so to compute relative pitch,
and then second sort by relative pitch).
scherzo.c