Skip to main content

Module chordsymbol

Module chordsymbol 

Source
Expand description

Lead-sheet chord-symbol parsing.

Structs§

ChordAlteration
A chord-symbol alteration such as b5 or #11.
ChordSymbol
Parsed chord symbol.
ChordSymbolFigure
A chord named as a lead-sheet symbol, in the parts music21’s chordSymbolFigureFromChord writes 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.
Music21ChordType
A chord type from music21’s harmony.CHORD_TYPES table.

Enums§

ChordQuality
Tertian quality parsed from a chord symbol.

Functions§

abbreviations_for_kind
Every abbreviation music21 accepts for a chord kind: music21’s getAbbreviationListGivenChordType, so dominant-seventh gives 7 and dom7. None for an unknown kind.
chord_symbol_figure_from_chord
Names a chord as a lead-sheet symbol: music21’s chordSymbolFigureFromChord, so C E G B- is C7, E G C is C/E and a lone C is Cpedal. Notes the kind cannot account for are listed after add, and beside them the notes the kind expects but the chord lacks after omit, as music21 writes them. None when 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 are ChordSymbolFigure.
chord_symbol_from_chord
A ChordSymbol read off a chord: music21’s chordSymbolFromChord, chord_symbol_figure_from_chord parsed back. None when no kind fits.
chord_symbol_kind_from_chord
The kind of chord a figure is written with: what music21 answers beside the figure when chordSymbolFigureFromChord is asked to include the chord type, so C E G is major and a lone C is pedal.
current_abbreviation_for_kind
The abbreviation music21 writes a chord kind with: its getCurrentAbbreviationFor, the first of abbreviations_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,-7 for dominant-seventh.