Skip to main content

Module harte

Module harte 

Source
Expand description

Harte chord notation: C:maj7/3, Bb:(b3,5,b7,9), N. Harte chord notation, as read by harte-library: C:maj7/3, Bb:(b3,5,b7,9), F:sus4(*3,9), N.

A label is a root, an optional shorthand, an optional list of degrees in parentheses and an optional bass degree after a slash. *3 in the degrees removes the third. A degree is written the Harte way, b3, #11, bb7; convert_interval gives the music21 interval it stands for, and Harte builds the chord the label sounds.

Structs§

Harte
A chord read from a Harte label, with the Chord it sounds.
HarteInterval
A Harte degree beside the music21 interval it stands for.

Constants§

SHORTHAND_DEGREES
The degrees each Harte shorthand stands for, the root included.

Functions§

convert_interval
The music21 interval a Harte degree stands for: b3 is m3, #11 is A4, bb7 is d7. Compound degrees fold to simple ones, and a double sharp or flat on a perfect degree is read as the neighbouring degree with one accidental fewer, as harte-library reads them.
degree_sort_key
Where a degree sorts among the others: by its number, a flat just below it and a sharp just above, so b3 comes after 2 and before 3.
shorthand_degrees
The degrees a shorthand stands for, or None for a name that is not one.

Type Aliases§

Shorthand
A shorthand beside the degrees it stands for.