]> git.notmuchmail.org Git - scherzo/commit
Prefer flats rather than sharps when converting from MIDI
authorCarl Worth <cworth@cworth.org>
Tue, 1 Oct 2013 19:20:06 +0000 (12:20 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 3 Oct 2013 17:50:55 +0000 (10:50 -0700)
commita53d70ed61f87a5a49426b1e3066dbba09907199
tree042d828ebea37433957b54e6c0b0454a4f7a473c
parentff7437e171dab5bc3868ce65ecacf8e77c6e8df3
Prefer flats rather than sharps when converting from MIDI

It's ambiguous before we look at the key, (which often tells us what
to do). But when the key doesn't indicate, we can really say flat from
above or sharp from below.

The preference for choosing flat here is so that if we input a scale
such as Db major, we get that key signature (with 5 flats) rather than
the rather unlikely key of C# with 7 sharps.
pitch.c