]> git.cworth.org Git - scherzo/commit
Fix high octave numbers (8+) to not be interpreted as 0. master
authorCarl Worth <cworth@cworth.org>
Thu, 3 Oct 2013 17:52:59 +0000 (10:52 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 3 Oct 2013 17:52:59 +0000 (10:52 -0700)
commitb7b592c437804f23dbe90e10b65b7cacf4770725
treeb0c84bb0013623afac518c14a088c509b428e2f6
parentdd714c0284f6c61d2a802f2626463524b75a1933
Fix high octave numbers (8+) to not be interpreted as 0.

A user recently noticed that the highest key on the piano (A8) was
showing up as A0 in scherzo, (the lowest note on the piano). The bug
was that scherzo was using only 3 bits for the octave number, which
obviously only covers the range [0:7].

ISO octave numbers, (and the octave numbers needed for a piano), are
the range [0:8]. So adding one bit to the octave storage does the
trick here.
pitch.h