Repository navigation
v0.58.1: Spelling that survives octaves and numerals
What's fixed
- Octave shifts keep the written note.
Eb4 + 12is Eb5, andDb4 + 0stays Db4. Inverting Eb major is still Eb major, not D# major. Drop voicings andtranspose(0)keep the flats too. - Roman numerals spell by letter.
Key("C#").progression("I")is C# E# G#. In F major, ii is G Bb D, not G A# D. V/IV in Bb is Bb7. analyze()round-trips. Cmaj7 in C isImaj7, notI7(that one builds a dominant seventh). Half-diminished chords areiiø7. Ninths areV9andImaj9. F# major in C is#IV; Gb major isbV.- Key signatures count every sharp. D# major is 9 sharps, including F## and C##.
Key.all_keys()uses the ordinary names: Bb major and Eb minor, not A# and D#. - Enharmonics go both ways.
Tone("Db4").enharmonicis C#, and E# is F. A flat MIDI note keeps the sharp spelling as an alias, and the two compare equal. - Helmholtz matches the staff. Middle C is
c', the one-line octave. C3 isc, C2 isC, C1 isCC. - Solfege follows the pitch. E# is Fa, with F. B#, Fb, Cb, and double accidentals use the syllable of the note they sound.
C6/9is a sixth-ninth chord. The9is not a bass note.sus,-,-7,°, andΔ7parse as the qualities musicians write.
Heptatonic Scale.transpose re-spells one letter per degree and prefers the key with fewer accidentals, so C major up a semitone is Db major.
Integer steps that are not whole octaves stay chromatic: C4 + 3 is still D#4.
Full Changelog: v0.58.0...v0.58.1