Expand description
Roman numeral parsing and compact harmonic analysis.
Structs§
- Figure
Tuple - Reads a chord as the tonic or the dominant of a key, with its inversion:
A pitch as a figure over a reference pitch: the scale step it stands
above the reference, how far it is altered from the key’s own spelling of
that degree, and the accidental written in front of a figure for it.
music21’s
FigureTuple. - Numeral
Alone - The numeral a figure opens with, and everything it implies.
- Pitch
Figure Tuple - A
FigureTuplebeside the pitch it describes: music21’sPitchFigureTuple. - Roman
Numeral - A parsed Roman numeral in a key.
Enums§
- Implied
Quality - The quality a figure says its chord has, whatever the scale spells.
- Minor67
Default - How a figure on the sixth or seventh degree of a minor key decides
between the natural and the raised degree: music21’s
Minor67Default.
Constants§
- FUNCTIONALITY_
SCORES - music21’s
functionalityScores: how strongly a figure implies its harmonic function, on a hundred-point scale, in music21’s order.
Functions§
- adjust_
minor_ vi_ and_ vii_ by_ quality - The accidental a numeral on the sixth or seventh degree of a minor key
ends up with, given how the key is read and the chord the figure asks
for: music21’s
adjustMinorVIandVIIByQuality. - analyze_
chord - Performs functional Roman-numeral analysis in a key.
- analyze_
chord_ with_ root - Performs Roman-numeral analysis in a key using an explicit harmonic root.
- bass_
scale_ degree_ from_ notation - Which scale degree a figured-bass column puts in the bass, for a chord
whose root stands on
degree. - correct_
rn_ alteration_ for_ minor - The figure of a chord’s root corrected for a minor key, where the sixth
and seventh degrees are named against the natural minor: music21’s
correctRNAlterationForMinor, in its cautionary reading. - correct_
suffix_ for_ chord_ quality - The inversion figure with the quality mark a chord’s fifth and seventh
call for in front of it: music21’s
correctSuffixForChordQuality. A diminished fifth writeso, an augmented one+, and a diminished fifth under a minor seventhø; a figure that already carries the mark is left as it is. - expand_
shorthand - music21’s
expandShortHand: the figures of a column, one string each. - figure_
tuples - One figure per pitch of the chord, each read above the chord’s bass:
music21’s
figureTuples. - identify_
as_ tonic_ or_ dominant - music21’s
identifyAsTonicOrDominant, soG B D Fin C major isV7andA C Ein A minor isi. A chord containing the tonic is the tonic, one containing the dominant is the dominant, and anything else is judged by how many of its notes the tonic and dominant sevenths share;Nonewhen neither wins. - match_
pitches_ to_ quality - Respells the third, fifth and seventh of a chord to the quality asked for.
- parse_
numeral_ alone - Reads the numeral off the front of a figure.
- roman_
inversion_ name - The figured-bass suffix a Roman numeral takes for a chord’s inversion:
music21’s
romanInversionName,6and64for a triad,7,65,43and42for a seventh chord, and nothing otherwise. The inversion is the chord’s own unless one is given. - roman_
numeral_ from_ chord - music21’s
romanNumeralFromChord: the numeral a chord is in a key, written the way music21 writes it. With no key the chord’s root is the key, major where the chord has a major third and minor otherwise. The figure is read off the chord’s pitches above its bass, so a chord written without octaves sounds in octave 4 andG B D Fin C major isV43. An empty chord is no numeral at all. - secondary_
key - The key a secondary numeral establishes.
- split_
roman_ accidental_ prefix - Splits the accidentals written in front of a roman numeral off the rest of the figure, counting sharps as positive and flats as negative.
- split_
roman_ prefix - Splits the leading roman numeral off a figure, returning the numeral and what follows it. Errors when the value does not begin with one.
- split_
secondary - Where music21 splits a secondary numeral off a figure.
- take_
added_ steps - Takes the
[addN]groups out of a figure, with the accidental each was written with. - take_
bracketed_ alterations - Takes the
[#N]and[bN]groups out of a figure. - take_
omitted_ steps - Takes the
[noN]groups out of a figure, leaving the rest of it.