musescore/MuseScore — pull request #214 by softins (2013-02-11 11:43:03+00:00)
Title: Key-based cursor note movement and pitch2tpc()

Replace pitch2tpc2() and both variants of pitch2tpc() with a single
generic pitch2tpc(). Add PREFER_SHARPS, PREFER_NEAREST and PREFER_FLATS.
Update all places where those functions are called from.
Use intelligent key-aware stepping of pitch and tpc in Score::upDown().