]> git.cworth.org Git - scherzo/commit
Put all chord signatures into a single array
authorCarl Worth <cworth@cworth.org>
Fri, 27 Sep 2013 05:36:00 +0000 (22:36 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 27 Sep 2013 05:36:00 +0000 (22:36 -0700)
commitb83563860adce8c25e29c90edab26285367108ec
tree996ad4e99cd789574d72662451fb767a4dd24cef
parent7bab1f929a847d2b1ee569a5ed4149d374aa707a
Put all chord signatures into a single array

This simplifies the code quite a bit. Instead of a big switch
statement based on number of notes in the chord, with each case a
nearly-identical for loop, we can have one single for loop for all
signatures.

More importantly, this means that after the for loop has matched a
signature, we can have a single variable pointing to the matching
signature. That will be important for using the signature to guide in
spelling the chord correctly, which we hope to do soon.
scherzo.c