Expand description
Lead-sheet chord-symbol parsing.
Structs§
- Chord
Alteration - A chord-symbol alteration such as
b5or#11. - Chord
Symbol - Parsed chord symbol.
- Chord
Symbol Figure - A chord named as a lead-sheet symbol, in the parts music21’s
chordSymbolFigureFromChordwrites it from: the root, the kind and its abbreviation, the bass where it is not the root, and the notes the kind does not account for. - Music21
Chord Type - A chord type from music21’s
harmony.CHORD_TYPEStable.
Enums§
- Chord
Quality - Tertian quality parsed from a chord symbol.
Functions§
- abbreviations_
for_ kind - Every abbreviation music21 accepts for a chord kind: music21’s
getAbbreviationListGivenChordType, sodominant-seventhgives7anddom7.Nonefor an unknown kind. - chord_
symbol_ figure_ from_ chord - Names a chord as a lead-sheet symbol: music21’s
chordSymbolFigureFromChord, soC E G B-isC7,E G CisC/Eand a loneCisCpedal. Notes the kind cannot account for are listed afteradd, and beside them the notes the kind expects but the chord lacks afteromit, as music21 writes them.Nonewhen no kind fits, where music21 returns the sentence “Chord Symbol Cannot Be Identified”; an empty chord gives an empty string. The parts the figure is written from areChordSymbolFigure. - chord_
symbol_ from_ chord - A
ChordSymbolread off a chord: music21’schordSymbolFromChord,chord_symbol_figure_from_chordparsed back.Nonewhen no kind fits. - chord_
symbol_ kind_ from_ chord - The kind of chord a figure is written with: what music21 answers beside
the figure when
chordSymbolFigureFromChordis asked to include the chord type, soC E Gismajorand a loneCispedal. - current_
abbreviation_ for_ kind - The abbreviation music21 writes a chord kind with: its
getCurrentAbbreviationFor, the first ofabbreviations_for_kind. - known_
chord_ symbol_ types - Returns every chord type this crate knows from music21’s harmony tables.
- notation_
for_ kind - The scale-degree notation of a chord kind: music21’s
getNotationStringGivenChordType,1,3,5,-7fordominant-seventh.